diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-08-09 13:16:27 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-08-09 13:16:27 -0700 |
commit | 0e965ecb16368be3a4b500ffb16fa605e773d7b7 (patch) | |
tree | 2d346438db3a71d6f1bd664aee6c4c2cbc46a4ab /src/unit/synchrohash.unit | |
parent | 743a0010e4aca0b5c5ceaba55af3415587af6cf7 (diff) | |
download | libbu++-0e965ecb16368be3a4b500ffb16fa605e773d7b7.tar.gz libbu++-0e965ecb16368be3a4b500ffb16fa605e773d7b7.tar.bz2 libbu++-0e965ecb16368be3a4b500ffb16fa605e773d7b7.tar.xz libbu++-0e965ecb16368be3a4b500ffb16fa605e773d7b7.zip |
Used fixed seeds where random is used in tests.
It was so stupid to use random numbers in tests, generators yes, but
random? the test won't fail the same way twice in a row, defeating the
entire point of the test!
Diffstat (limited to '')
-rw-r--r-- | src/unit/synchrohash.unit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit/synchrohash.unit b/src/unit/synchrohash.unit index 756f38b..eb6c387 100644 --- a/src/unit/synchrohash.unit +++ b/src/unit/synchrohash.unit | |||
@@ -131,7 +131,7 @@ suite Hash | |||
131 | 131 | ||
132 | test stress | 132 | test stress |
133 | { | 133 | { |
134 | srandom(time(NULL)); | 134 | srandom(1234); |
135 | 135 | ||
136 | IntStrHash hTest; | 136 | IntStrHash hTest; |
137 | IntStrHash hReUse; | 137 | IntStrHash hReUse; |