projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change #include filenames from <foo.h> to <openssl.h>.
[openssl.git]
/
crypto
/
bn
/
bn_rand.c
diff --git
a/crypto/bn/bn_rand.c
b/crypto/bn/bn_rand.c
index 75b6b0493b1015da080b9c93cf81733737d77417..91b8e34ae65b364c03ed333c5f181ed6840c7aca 100644
(file)
--- a/
crypto/bn/bn_rand.c
+++ b/
crypto/bn/bn_rand.c
@@
-60,13
+60,9
@@
#include <time.h>
#include "cryptlib.h"
#include "bn_lcl.h"
#include <time.h>
#include "cryptlib.h"
#include "bn_lcl.h"
-#include
"rand.h"
+#include
<openssl/rand.h>
-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;
{
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);
/* 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)
RAND_bytes(buf,(int)bytes);
if (top)