diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-22 18:58:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-22 18:58:34 +0000 |
commit | 0a2545b6cc0daac05700e52b11bcc640cc7253fa (patch) | |
tree | 185d4b4b679dc21b8ee476ae90fefefb7006b81a /regress | |
parent | b643f13842f1e7aa13af5f19ea33210a315f6807 (diff) |
using /dev/random is ok
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/kqueue/kqueue-random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-random.c b/regress/sys/kern/kqueue/kqueue-random.c index fe7c7f295c2..a86fe85235d 100644 --- a/regress/sys/kern/kqueue/kqueue-random.c +++ b/regress/sys/kern/kqueue/kqueue-random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kqueue-random.c,v 1.7 2011/07/07 01:42:05 guenther Exp $ */ +/* $OpenBSD: kqueue-random.c,v 1.8 2014/11/22 18:58:33 deraadt Exp $ */ /* Written by Michael Shalayeff, 2002, Public Domain */ #include <stdlib.h> @@ -23,8 +23,8 @@ do_random(void) struct kevent ev; u_int32_t buf[BUFSIZ]; - if ((fd = open("/dev/arandom", O_RDONLY)) < 0) { - warn("open: /dev/arandom"); + if ((fd = open("/dev/random", O_RDONLY)) < 0) { + warn("open: /dev/random"); return (1); } if (fcntl(fd, F_SETFL, O_NONBLOCK) == -1) { |