summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-22 18:58:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-22 18:58:34 +0000
commit0a2545b6cc0daac05700e52b11bcc640cc7253fa (patch)
tree185d4b4b679dc21b8ee476ae90fefefb7006b81a /regress
parentb643f13842f1e7aa13af5f19ea33210a315f6807 (diff)
using /dev/random is ok
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/kern/kqueue/kqueue-random.c6
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) {