mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Do a favor to those who get weird compiles and report if RAND_pseudo_bytes
returns -1...
This commit is contained in:
parent
53fe8d5be5
commit
5ef67042f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user