summaryrefslogtreecommitdiffstats
path: root/sys/modules/random
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-10-27 06:06:04 +0000
committermarkm <markm@FreeBSD.org>2000-10-27 06:06:04 +0000
commit6458d733a983150ebfc10b03d7734c3b42c6e303 (patch)
treebf869d324cadd5843af844a6c6d36a999b8a1278 /sys/modules/random
parenta01491f9047180a93bb215af3fbb93771305357b (diff)
downloadFreeBSD-src-6458d733a983150ebfc10b03d7734c3b42c6e303.zip
FreeBSD-src-6458d733a983150ebfc10b03d7734c3b42c6e303.tar.gz
As the blocking model has seems to be troublesome for many, disable
it for now with an option. This option is already deprecated, and will be removed when the entropy-harvesting code is fast enough to warrant it.
Diffstat (limited to 'sys/modules/random')
-rw-r--r--sys/modules/random/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile
index 5b2a261..d736feb 100644
--- a/sys/modules/random/Makefile
+++ b/sys/modules/random/Makefile
@@ -5,8 +5,17 @@
KMOD = random
SRCS = bus_if.h device_if.h randomdev.c yarrow.c hash.c
SRCS += bf_cbc.c bf_skey.c bf_enc.c
-SRCS += vnode_if.h
+SRCS += vnode_if.h opt_noblockrandom.h
CFLAGS += -I${.CURDIR}/../..
NOMAN = yes
+NOBLOCKRANDOM= yes
+.if defined(NOBLOCKRANDOM)
+RANDOM_OPTS= "\#define NOBLOCKRANDOM"
+.endif
+
+opt_noblockrandom.h:
+ touch opt_noblockrandom.h
+ echo $(RANDOM_OPTS) >> opt_noblockrandom.h
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud