svn commit: r256184 - projects/random_number_generator/sys/dev/random
Dag-Erling Smørgrav
des at FreeBSD.org
Wed Oct 9 09:13:13 UTC 2013
Author: des
Date: Wed Oct 9 09:13:12 2013
New Revision: 256184
URL: http://svnweb.freebsd.org/changeset/base/256184
Log:
Re-add /dev/urandom for compatibility purposes.
Modified:
projects/random_number_generator/sys/dev/random/randomdev.c
Modified: projects/random_number_generator/sys/dev/random/randomdev.c
==============================================================================
--- projects/random_number_generator/sys/dev/random/randomdev.c Wed Oct 9 09:12:44 2013 (r256183)
+++ projects/random_number_generator/sys/dev/random/randomdev.c Wed Oct 9 09:13:12 2013 (r256184)
@@ -179,6 +179,7 @@ random_initialize(void *p, struct random
* 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;
More information about the svn-src-projects
mailing list