RAND_add() wants a double as it's last argument.
This commit is contained in:
parent
b79c82eaab
commit
a87228031f
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
|
|||
|
||||
/* make a random number and set the top and bottom bits */
|
||||
time(&tim);
|
||||
RAND_add(&tim,sizeof(tim),0);
|
||||
RAND_add(&tim,sizeof(tim),0.0);
|
||||
|
||||
if (pseudorand)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue