From 1f67cd8737f043c2aeb1bcb73d79e04e9470a264 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Tue, 27 Jun 2000 09:38:40 +0000 Subject: I am guilty of an act of ommission. There is no longer a /dev/urandom device with Yarrow, and although I coded for that in dev/MAKEDEV, I forgot to _tell_ folks. This commit adds back the /dev/urandom device (as a duplicate) of /dev/random, until such time as it can be properly announced. This will help the openssl users quite a lot. --- sys/dev/randomdev/randomdev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/dev/randomdev/randomdev.c') diff --git a/sys/dev/randomdev/randomdev.c b/sys/dev/randomdev/randomdev.c index 1bea030b657f..9e0a91878d66 100644 --- a/sys/dev/randomdev/randomdev.c +++ b/sys/dev/randomdev/randomdev.c @@ -51,6 +51,7 @@ static d_write_t randomwrite; #define CDEV_MAJOR 2 #define RANDOM_MINOR 3 +#define URANDOM_MINOR 4 static struct cdevsw random_cdevsw = { /* open */ (d_open_t *)nullop, @@ -71,6 +72,7 @@ static struct cdevsw random_cdevsw = { /* For use with make_dev(9)/destroy_dev(9). */ static dev_t randomdev; +static dev_t urandomdev; void *buf; @@ -126,12 +128,15 @@ random_modevent(module_t mod, int type, void *data) if (bootverbose) printf("random: \n"); randomdev = make_dev(&random_cdevsw, RANDOM_MINOR, UID_ROOT, - GID_WHEEL, 0666, "zero"); + GID_WHEEL, 0666, "random"); + urandomdev = make_dev(&random_cdevsw, URANDOM_MINOR, UID_ROOT, + GID_WHEEL, 0666, "urandom"); randominit(); return 0; case MOD_UNLOAD: destroy_dev(randomdev); + destroy_dev(urandomdev); return 0; case MOD_SHUTDOWN: -- cgit v1.2.3