{
unsigned char *buf = NULL;
int ret = 0, bit, bytes, mask;
- time_t tim;
if (bits == 0) {
if (top != BN_RAND_TOP_ANY || bottom != BN_RAND_BOTTOM_ANY)
}
/* make a random number and set the top and bottom bits */
- time(&tim);
- RAND_add(&tim, sizeof(tim), 0.0);
-
if (RAND_bytes(buf, bytes) <= 0)
goto err;