summaryrefslogtreecommitdiff
path: root/src/sysdeps/trydevurandom.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 13:48:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-15 13:48:23 +0000
commit6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e (patch)
treedaee4fc987bc629ec6bd09912cb3ad249dbec341 /src/sysdeps/trydevurandom.c
parenta36a3eb159d88507705253577814a8fdcb2a86d1 (diff)
downloadskalibs-6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e.tar.xz
Fix trydevurandom test
Diffstat (limited to 'src/sysdeps/trydevurandom.c')
-rw-r--r--src/sysdeps/trydevurandom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdeps/trydevurandom.c b/src/sysdeps/trydevurandom.c
index 9c56e94..8504f6e 100644
--- a/src/sysdeps/trydevurandom.c
+++ b/src/sysdeps/trydevurandom.c
@@ -16,5 +16,5 @@ int main (void)
fd = open("/dev/urandom", O_RDONLY) ;
if ((fd == -1) || (read(fd, b, 64) < 64) ) return 111 ;
close(fd) ;
- return (!memcmp(a, 64, b)) ;
+ return (!memcmp(a, b, 64)) ;
}