diff options
author | Richard Levitte <levitte@openssl.org> | 2000-10-10 15:08:30 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-10-10 15:08:30 +0000 |
commit | 5ef67042f9d3514d663b3f6a83aefc98a3cfa85d (patch) | |
tree | df65df406886a1d733d5b3e7543417178b6a2f6f /crypto | |
parent | 53fe8d5be5bb19086345235e6b5c1dbf79c053c9 (diff) | |
download | openssl-5ef67042f9d3514d663b3f6a83aefc98a3cfa85d.tar.gz |
Do a favor to those who get weird compiles and report if RAND_pseudo_bytes
returns -1...
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/randtest.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c index da96e3f695..b64de616db 100644 --- a/crypto/rand/randtest.c +++ b/crypto/rand/randtest.c @@ -73,7 +73,13 @@ int main() /*double d; */ long d; - RAND_pseudo_bytes(buf,2500); + i = RAND_pseudo_bytes(buf,2500); + if (i < 0) + { + printf ("init failed, the rand method is not properly installed\n"); + err++; + goto err; + } n1=0; for (i=0; i<16; i++) n2[i]=0; @@ -201,6 +207,7 @@ int main() err++; } printf("test 4 done\n"); + err: err=((err)?1:0); exit(err); return(err); |