summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-08 17:44:17 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-08 17:44:17 -0800
commit02231e715c4cb67d3394ee363a758f6b3e6b53b8 (patch)
tree4b73bcb725d7434da0a7be7be668f2a35ceb040c /src
parentc5b5bd910507520f7974a156a1de9d187f23bc2f (diff)
downloadnng-02231e715c4cb67d3394ee363a758f6b3e6b53b8.tar.gz
nng-02231e715c4cb67d3394ee363a758f6b3e6b53b8.tar.bz2
nng-02231e715c4cb67d3394ee363a758f6b3e6b53b8.zip
POSIX /dev/urandom compilation bug.
Diffstat (limited to 'src')
-rw-r--r--src/platform/posix/posix_rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/posix/posix_rand.c b/src/platform/posix/posix_rand.c
index 65d1c031..2576a444 100644
--- a/src/platform/posix/posix_rand.c
+++ b/src/platform/posix/posix_rand.c
@@ -62,7 +62,7 @@ nni_plat_seed_prng(void *buf, size_t bufsz)
int fd;
if ((fd = open("/dev/urandom", O_RDONLY)) >= 0) {
- (void) read(fd, buf, buffz);
+ (void) read(fd, buf, bufsz);
(void) close(fd);
}
#endif