random: Change initial extra seeding from 2400 bits to 128 bits.
[libgcrypt.git] / random / random-csprng.c
index 332744b..da50fda 100644 (file)
@@ -973,8 +973,8 @@ read_pool (byte *buffer, size_t length, int level)
 
       pool_balance = 0;
       needed = length - pool_balance;
-      if (needed < POOLSIZE/2)
-        needed = POOLSIZE/2;
+      if (needed < 16)  /* At least 128 bits.  */
+        needed = 16;
       else if( needed > POOLSIZE )
         BUG ();
       read_random_source (RANDOM_ORIGIN_EXTRAPOLL, needed,