m.BDEV_POS_HI = ex64hi(pos);
m.BDEV_COUNT = nr_req;
m.BDEV_GRANT = grant;
- m.BDEV_ID = rand();
+ m.BDEV_ID = lrand48();
r = sendrec_driver(&m, exp, res);
mt.BDEV_POS_HI = 0L;
mt.BDEV_COUNT = 1;
mt.BDEV_GRANT = grant;
- mt.BDEV_ID = rand();
+ mt.BDEV_ID = lrand48();
memset(&iovt, 0, sizeof(iovt));
iovt.iov_grant = grant2;
size_t i;
for (i = 0; i < size; i++)
- ptr[i] = rand() % 256;
+ ptr[i] = lrand48() % 256;
return get_sum(ptr, size);
}
m.m_type = BDEV_OPEN;
m.BDEV_MINOR = minor;
m.BDEV_ACCESS = may_write ? (R_BIT | W_BIT) : R_BIT;
- m.BDEV_ID = rand();
+ m.BDEV_ID = lrand48();
sendrec_driver(&m, OK, &res);
memset(&m, 0, sizeof(m));
m.m_type = BDEV_CLOSE;
m.BDEV_MINOR = minor;
- m.BDEV_ID = rand();
+ m.BDEV_ID = lrand48();
sendrec_driver(&m, OK, &res);
m.BDEV_POS_HI = 0L;
m.BDEV_REQUEST = req;
m.BDEV_GRANT = grant;
- m.BDEV_ID = rand();
+ m.BDEV_ID = lrand48();
r = sendrec_driver(&m, exp, res);
if ((r = getuptime(&now)) != OK)
panic("unable to get uptime: %d", r);
- srand(now);
+ srand48(now);
return OK;
}