commit 1e82d32256c98de9bda8b61444eb53c626f76561
parent 03953a6960165607def5415bd4cfc72f76239fff
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 31 Jan 2022 15:58:24 +0300
test_digestauth_concurrent: fixed non-W32 random generation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c
@@ -420,7 +420,7 @@ getRnd (void *buf, size_t size)
res = read (fd, ((uint8_t *) buf) + off, size - off);
if (0 > res)
externalErrorExitDesc ("Failed to read '/dev/urandom'");
- off += (size_t) len;
+ off += (size_t) res;
} while (off < size);
(void) close (fd);
#else