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,9 +53,13 @@ RandomSeed (
RAND_seed (DefaultSeed, sizeof (DefaultSeed));
}
if (RAND_status () == 1) {
return TRUE;
}
return FALSE;
}
/**
Generates a pseudorandom byte stream of the specified size.