Do a favor to those who get weird compiles and report if RAND_pseudo_bytes

returns -1...
This commit is contained in:
Richard Levitte 2000-10-10 15:08:30 +00:00
parent 53fe8d5be5
commit 5ef67042f9

View File

@ -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);