~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93f563b
)
rand/noise.c: Environment variable to force use of `noise_filter'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 13 Jul 2013 15:34:40 +0000
(16:34 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 13 Mar 2014 01:51:43 +0000
(
01:51
+0000)
For debugging, mostly. Don't use this in real life.
rand/noise.c
patch
|
blob
|
blame
|
history
diff --git
a/rand/noise.c
b/rand/noise.c
index
6cab8ca
..
a168385
100644
(file)
--- a/
rand/noise.c
+++ b/
rand/noise.c
@@
-32,6
+32,7
@@
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@@
-453,7
+454,7
@@
void noise_acquire(rand_pool *r)
unsigned i;
for (i = 0; i < 8; i++)
noise_freewheel(r);
- if (!noise_devrandom(r)) {
+ if (!noise_devrandom(r)
|| getenv("CATACOMB_FORCE_ESOTERIC_SOURCES")
) {
noise_enquire(r);
for (i = 0; i < 8; i++)
noise_freewheel(r);