star-sp

Random number generators and distributions
git clone git://git.meso-star.fr/star-sp.git
Log | Files | Refs | README | LICENSE

commit 5497482732cdfe86eec88416fb2b9077533eb5f0
parent d395b62cd28a9fc87b297bdb8ef321d971b43afc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri,  4 Dec 2020 18:34:38 +0100

Fix the test_ssp_rng test regarding the C89 norm

Add a fflush between the write/read operations

Diffstat:
Msrc/test_ssp_rng.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/test_ssp_rng.c b/src/test_ssp_rng.c @@ -207,6 +207,8 @@ test_rng(const struct ssp_rng_type* type) FOR_EACH(i, 0, NRAND) datai0[i] = ssp_rng_get(rng); + fflush(stream); + CHK(ssp_rng_read(NULL, NULL) == RES_BAD_ARG); CHK(ssp_rng_read(rng, NULL) == RES_BAD_ARG); CHK(ssp_rng_read(NULL, stream) == RES_BAD_ARG);