]> granicus.if.org Git - libexpat/commitdiff
xmlparse.c: Make failproof entropy providers stand out more
authorSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 20:49:31 +0000 (22:49 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 20:50:01 +0000 (22:50 +0200)
expat/lib/xmlparse.c

index 9d81b55d518a888f4b85f62cc97573683567f4b9..b7e916c8390f023fc282218cd9f22681c6ba073a 100644 (file)
@@ -844,6 +844,8 @@ generate_hash_secret_salt(XML_Parser parser)
 {
   unsigned long entropy;
   (void)parser;
+
+  /* "Failproof" high quality providers: */
 #if defined(HAVE_ARC4RANDOM_BUF)
   arc4random_buf(&entropy, sizeof(entropy));
   return ENTROPY_DEBUG("arc4random_buf", entropy);