]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/Rand/CryptRandTsc.c
Though the comment of RandomSeed() states it should return FALSE if there is not...
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Rand / CryptRandTsc.c
index 7259ed50da09ab3f9df017a7bbf2b6f57da121bd..dbdd6383a4d654f284718ebf0b8a9acfe6dd96b4 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