Add weak platform independent PRNG to test framework.
authorPauli <paul.dale@oracle.com>
Fri, 26 Jul 2019 02:56:01 +0000 (12:56 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 28 Jul 2019 23:11:15 +0000 (09:11 +1000)
commite9a5932d04f6b7dd25b39a8ff9dc162d64a78c22
tree9acfb870745830b2c6aebcd1bcfc9260af3e1c45
parent5d00f46e1527235ecd28a14c5413355c3ea66dfc
Add weak platform independent PRNG to test framework.

Implement the GNU C library's random(3) pseudorandom number generator.
The algorithm is described: https://www.mscs.dal.ca/~selinger/random/

The rationale is to make the tests repeatable across differing platforms with
different underlying implementations of the random(3) library call.

More specifically: when executing tests with random ordering.

[extended tests]

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9463)
test/build.info
test/testutil.h
test/testutil/driver.c
test/testutil/random.c [new file with mode: 0644]