From 6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 15 Mar 2017 13:48:23 +0000 Subject: Fix trydevurandom test --- src/sysdeps/trydevurandom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sysdeps') 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)) ; } -- cgit v1.2.3