diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-12-24 14:01:42 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-12-24 14:07:25 -0800 |
| commit | 252ea41be8bab992dadabec0e4f1d77650949f4c (patch) | |
| tree | 14e87f34b3137745cd2dd8c519070b3319330c3d /tests/testutil.c | |
| parent | 20dfa3c924dabf20bedf6f82969e7e1467e799af (diff) | |
| download | nng-252ea41be8bab992dadabec0e4f1d77650949f4c.tar.gz nng-252ea41be8bab992dadabec0e4f1d77650949f4c.tar.bz2 nng-252ea41be8bab992dadabec0e4f1d77650949f4c.zip | |
fixes #1038 Linux should use getentropy or getrandom
Diffstat (limited to 'tests/testutil.c')
| -rw-r--r-- | tests/testutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutil.c b/tests/testutil.c index 77b985a3..ef748b99 100644 --- a/tests/testutil.c +++ b/tests/testutil.c @@ -203,7 +203,7 @@ testutil_next_port(void) (void) UnlockFileEx(h, 0, MAXDWORD, MAXDWORD, &olp); #else fseek(f, 0, SEEK_SET); - ftruncate(fileno(f), 0); + (void) ftruncate(fileno(f), 0); (void) fprintf(f, "%u", port); (void) lockf(fileno(f), 0, F_ULOCK); |
