]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Convert tests to use fr_fast_rand() rather than srand()/rand() (#4502)
authorJames Jones <jejones3141@gmail.com>
Wed, 11 May 2022 17:34:27 +0000 (12:34 -0500)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 17:34:27 +0000 (13:34 -0400)
commit80a4cd3bf06bd299e1a64dbd1b56e666ffc774ba
tree1345ac7ec1bed7b242ab02f314cca92a3d58217d
parent7d803f892f914b2c01a2b935d2daab63ee6f9b9f
Convert tests to use fr_fast_rand() rather than srand()/rand() (#4502)

Coverity considers rand() risky, but data structure tests don't
require cryptographically secure pseudorandom numbers. This should
take care of CIDs 14691201469179150392715039351503941,
15039671503977150399015040151504048, and 1504054.
src/lib/util/heap_tests.c
src/lib/util/lst_tests.c
src/lib/util/minmax_heap_tests.c
src/lib/util/pair_list_perf_test.c