From 02231e715c4cb67d3394ee363a758f6b3e6b53b8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 8 Jan 2017 17:44:17 -0800 Subject: POSIX /dev/urandom compilation bug. --- src/platform/posix/posix_rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2