From: Richard Levitte Date: Sun, 27 Feb 2000 22:57:53 +0000 (+0000) Subject: Include rand.h so RAND_pseudo_bytes may be declared. X-Git-Tag: OpenSSL_0_9_5a-beta1~158 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=4ba48ec4d05ef71bb6933bb4983e9a98d92763fc;hp=c257cce913fb12da6dd6d6c554711fdbe10e9158 Include rand.h so RAND_pseudo_bytes may be declared. Remove one ampersand so the compiler may complain less. Make rand() static so it will not conflict with the C RTL. Make bug() static too, for good measure. --- diff --git a/crypto/bn/divtest.c b/crypto/bn/divtest.c index 60b3d662d9..13ba86e3c4 100644 --- a/crypto/bn/divtest.c +++ b/crypto/bn/divtest.c @@ -1,13 +1,14 @@ #include +#include -int rand(n) +static int rand(n) { unsigned char x[2]; - RAND_pseudo_bytes(&x,2); + RAND_pseudo_bytes(x,2); return (x[0] + 2*x[1]); } -void bug(char *m, BIGNUM *a, BIGNUM *b) +static void bug(char *m, BIGNUM *a, BIGNUM *b) { printf("%s!\na=",m); BN_print_fp(stdout, a);