chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
protogen: a bit more generated docs tidying
[disorder]
/
lib
/
random.c
diff --git
a/lib/random.c
b/lib/random.c
index d6be3d9f47ec27614f8a536f8a5c88a104b9b63a..e9933a2a1a2b5ec236f63ca614da329eb6442df1 100644
(file)
--- a/
lib/random.c
+++ b/
lib/random.c
@@
-47,12
+47,12
@@
static void random__rekey(void) {
if(random_fd < 0) {
if((random_fd = open("/dev/urandom", O_RDONLY)) < 0)
if(random_fd < 0) {
if((random_fd = open("/dev/urandom", O_RDONLY)) < 0)
- fatal(errno, "opening /dev/urandom");
+
disorder_
fatal(errno, "opening /dev/urandom");
}
if((n = read(random_fd, key, sizeof key)) < 0)
}
if((n = read(random_fd, key, sizeof key)) < 0)
- fatal(errno, "reading from /dev/urandom");
+
disorder_
fatal(errno, "reading from /dev/urandom");
if((size_t)n < sizeof key)
if((size_t)n < sizeof key)
- fatal(0, "reading from /dev/urandom: short read");
+
disorder_
fatal(0, "reading from /dev/urandom: short read");
arcfour_setkey(random_ctx, key, sizeof key);
random_count = 8 * 1024 * 1024;
}
arcfour_setkey(random_ctx, key, sizeof key);
random_count = 8 * 1024 * 1024;
}