X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbn%2Fbn_rand.c;h=91b8e34ae65b364c03ed333c5f181ed6840c7aca;hp=75b6b0493b1015da080b9c93cf81733737d77417;hb=ec577822f95a8bca0023c5c77cef1a4916822d4a;hpb=7dfb0b774e6592dcbfe47015168a0ac8b44e2a17 diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index 75b6b0493b..91b8e34ae6 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -60,13 +60,9 @@ #include #include "cryptlib.h" #include "bn_lcl.h" -#include "rand.h" +#include -int BN_rand(rnd, bits, top, bottom) -BIGNUM *rnd; -int bits; -int top; -int bottom; +int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { unsigned char *buf=NULL; int ret=0,bit,bytes,mask; @@ -85,7 +81,7 @@ int bottom; /* make a random number and set the top and bottom bits */ time(&tim); - RAND_seed((unsigned char *)&tim,sizeof(tim)); + RAND_seed(&tim,sizeof(tim)); RAND_bytes(buf,(int)bytes); if (top)