aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib9/truerand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/truerand.c b/src/lib9/truerand.c
index b3c343ef..03f3dce1 100644
--- a/src/lib9/truerand.c
+++ b/src/lib9/truerand.c
@@ -15,7 +15,7 @@ truerand(void)
if(randfd < 0 || read(randfd, buf, 1) != 1)
randfd = open(randfile="/dev/srandom", OREAD); /* OpenBSD */
if(randfd < 0)
- sysfatal("can't open /dev/random: %r");
+ sysfatal("can't open %s: %r", randfile);
fcntl(randfd, F_SETFD, FD_CLOEXEC);
}
for(i=0; i<sizeof(buf); i += n)