Rand: check the status of the pseudorandom number generator

This commit is contained in:
Gary Ching-Pang Lin 2013-07-04 16:12:30 +08:00 committed by Peter Jones
parent 9fd4e4a54e
commit 681082e6c4

View File

@ -53,7 +53,11 @@ RandomSeed (
RAND_seed (DefaultSeed, sizeof (DefaultSeed));
}
return TRUE;
if (RAND_status () == 1) {
return TRUE;
}
return FALSE;
}
/**