]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/Rand/CryptRandItc.c
Though the comment of RandomSeed() states it should return FALSE if there is not...
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Rand / CryptRandItc.c
index dcc1853f136fb600d44e5676b89433819cd8734a..0f27f253d21c2e83735b1b865cd56c59c87988f8 100644 (file)
@@ -65,7 +65,11 @@ RandomSeed (
     RAND_seed (DefaultSeed, sizeof (DefaultSeed));\r
   }\r
 \r
-  return TRUE;\r
+  if (RAND_status () == 1) {\r
+    return TRUE;\r
+  }\r
+\r
+  return FALSE;\r
 }\r
 \r
 /**\r