summaryrefslogtreecommitdiff
path: root/tests/pkbench.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pkbench.c')
-rw-r--r--tests/pkbench.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pkbench.c b/tests/pkbench.c
index d69bc5f3..372fa0c9 100644
--- a/tests/pkbench.c
+++ b/tests/pkbench.c
@@ -335,6 +335,9 @@ main (int argc, char **argv)
char *algorithm = NULL;
char *key_size = NULL;
+ /* No valuable keys are create, so we can speed up our RNG. */
+ gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
+
if (argv[2])
{
algorithm = argv[2];