summaryrefslogtreecommitdiff
path: root/Cryptlib
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2013-09-26 11:58:02 -0400
committerPeter Jones <pjones@redhat.com>2013-09-26 11:58:02 -0400
commit744cb2109b2ddd9b9305faa321bcd10746947c44 (patch)
tree027d7165aa078acceafaf22357a314ee6015acc2 /Cryptlib
parent71e70c72df612b34cf92a5bd706afd5322839e18 (diff)
downloadefi-boot-shim-744cb2109b2ddd9b9305faa321bcd10746947c44.tar.gz
efi-boot-shim-744cb2109b2ddd9b9305faa321bcd10746947c44.zip
Rand: check the status of the pseudorandom number generator
Diffstat (limited to 'Cryptlib')
-rw-r--r--Cryptlib/Rand/CryptRand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Cryptlib/Rand/CryptRand.c b/Cryptlib/Rand/CryptRand.c
index 4b275951..a61c0c2a 100644
--- a/Cryptlib/Rand/CryptRand.c
+++ b/Cryptlib/Rand/CryptRand.c
@@ -53,7 +53,11 @@ RandomSeed (
RAND_seed (DefaultSeed, sizeof (DefaultSeed));
}
- return TRUE;
+ if (RAND_status () == 1) {
+ return TRUE;
+ }
+
+ return FALSE;
}
/**