mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
print correct file name
This commit is contained in:
parent
ae3265db67
commit
c4791fa52a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue