void-packages/srcpkgs/audit/patches/seed-random.patch
Paper 550a07b08b audit: update to 3.0.1
Closes: #28447 [via git-merge-pr]
2021-04-03 00:32:43 -03:00

13 lines
329 B
Diff

diff --git a/lib/test/lookup_test.c b/lib/test/lookup_test.c
index 03f40aa..7d17a90 100644
--- a/lib/test/lookup_test.c
+++ b/lib/test/lookup_test.c
@@ -48,6 +48,7 @@ gen_id(char *dest)
{
size_t i, len;
+ srand(300);
assert(S_LEN >= 2);
len = 1 + rand() % (S_LEN - 1);
assert('A' == 0x41 && 'a' == 0x61); /* ASCII */