diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-15 13:48:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-15 13:48:23 +0000 |
commit | 6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e (patch) | |
tree | daee4fc987bc629ec6bd09912cb3ad249dbec341 | |
parent | a36a3eb159d88507705253577814a8fdcb2a86d1 (diff) | |
download | skalibs-6d2c28acaa0c11841ca57ffe2b07e34c91cdea9e.tar.xz |
Fix trydevurandom test
-rw-r--r-- | src/sysdeps/trydevurandom.c | 2 |
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)) ; } |