aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/random.c')
-rw-r--r--cipher/random.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cipher/random.c b/cipher/random.c
index 50e14aadc..b0bc832e6 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -162,6 +162,13 @@ randomize_buffer( byte *buffer, size_t length, int level )
}
+int
+random_is_faked()
+{
+ if( !is_initialized )
+ initialize();
+ return faked_rng || quick_test;
+}
/****************
* Return a pointer to a randomized buffer of level 0 and LENGTH bits