From a6278a2a42fc77094f356a290336a0fc395feb05 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sat, 14 Oct 2000 10:59:56 +0000 Subject: After some complaints about the dir names, the random device is now in dirs called sys/*/random/ instead of sys/*/randomdev/*. Introduce blocking, but only at startup; the random device will block until the first reseed happens to prevent clients from using untrustworthy output. Provide a read_random() call for the rest of the kernel so that the entropy device does not need to be present. This means that things like IPX no longer need to have "device random" hardcoded into thir kernel config. The downside is that read_random() will provide very poor output until the entropy device is loaded and reseeded. It is recommended that developers do NOT use the read_random() call; instead, they should use arc4random() which internally uses read_random(). Clean up the mutex and locking code a bit; this makes it possible to unload the module again. --- sys/modules/random/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/modules/random') diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile index 904015af77d1..5b2a261bd13e 100644 --- a/sys/modules/random/Makefile +++ b/sys/modules/random/Makefile @@ -1,10 +1,11 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../../dev/randomdev +.PATH: ${.CURDIR}/../../dev/random .PATH: ${.CURDIR}/../../crypto/blowfish 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 CFLAGS += -I${.CURDIR}/../.. NOMAN = yes -- cgit v1.3