From aa1c90971ffaaf6e76703033d04f01a09efed1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 9 Oct 2013 09:13:12 +0000 Subject: [PATCH] Re-add /dev/urandom for compatibility purposes. --- sys/dev/random/randomdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 0593f397ffcd..b76cb839a02c 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -179,6 +179,7 @@ random_initialize(void *p, struct random_adaptor *s) * with daemons */ random_dev = make_dev_credf(MAKEDEV_ETERNAL_KLD, &random_cdevsw, RANDOM_MINOR, NULL, UID_ROOT, GID_WHEEL, 0666, "random"); + make_dev_alias(random_dev, "urandom"); /* compatibility */ /* mark random(4) as initialized, to avoid being called again */ random_inited = 1;