From de8f24ea083384bb66b32ec105dc4743c5663cdf Mon Sep 17 00:00:00 2001 From: beck <> Date: Wed, 29 Sep 1999 04:37:45 +0000 Subject: OpenSSL 0.9.4 merge --- src/lib/libcrypto/bn/bn_rand.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/lib/libcrypto/bn/bn_rand.c') diff --git a/src/lib/libcrypto/bn/bn_rand.c b/src/lib/libcrypto/bn/bn_rand.c index 75b6b0493b..91b8e34ae6 100644 --- a/src/lib/libcrypto/bn/bn_rand.c +++ b/src/lib/libcrypto/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) -- cgit v1.2.3-55-g6feb