* gcrypt.h (GCRY_ENABLE_QUICK_RANDOM): New.
authorWerner Koch <wk@gnupg.org>
Thu, 23 Jan 2003 13:05:05 +0000 (13:05 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 23 Jan 2003 13:05:05 +0000 (13:05 +0000)
* global.c (gcry_control):

src/ChangeLog
src/gcrypt.h
src/global.c

index 55a001c..fe1c36c 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-23  Werner Koch  <wk@gnupg.org>
+
+       * gcrypt.h (GCRY_ENABLE_QUICK_RANDOM): New. 
+       * global.c (gcry_control): 
+
 2003-01-21  Werner Koch  <wk@gnupg.org>
 
        * gcrypt.h (gcry_random_add_bytes): Add QUALITY argument.
index ff81916..e805ce2 100644 (file)
@@ -174,7 +174,8 @@ enum gcry_ctl_cmds
     GCRYCTL_INITIALIZATION_FINISHED = 38,
     GCRYCTL_INITIALIZATION_FINISHED_P = 39,
     GCRYCTL_ANY_INITIALIZATION_P = 40,
-    GCRYCTL_SET_CBC_CTS = 41
+    GCRYCTL_SET_CBC_CTS = 41,
+    GCRYCTL_ENABLE_QUICK_RANDOM = 42
   };
 
 /* Perform various operations defined by CMD. */
index 90694d0..3ba85d3 100644 (file)
@@ -156,6 +156,10 @@ gcry_control( enum gcry_ctl_cmds cmd, ... )
        _gcry_private_enable_m_guard();
        break;
 
+      case GCRYCTL_ENABLE_QUICK_RANDOM:
+        _gcry_quick_random_gen (1);
+        break;
+
       case GCRYCTL_DUMP_RANDOM_STATS:
        _gcry_random_dump_stats();
        break;