star-sp

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

commit f9db651188ac908fdac98d955ee733ef42d333e7
parent 5b510f317fea86fb3c630fad31bbd81ddc73ba3d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  6 Mar 2025 16:58:44 +0100

Fix the way the RNG state cache is dumped

It was dumped twice in the event of a read error.

Diffstat:
Msrc/ssp_rng_proxy.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/ssp_rng_proxy.c b/src/ssp_rng_proxy.c @@ -307,7 +307,6 @@ rng_state_cache_read fseek(cache->stream, cache->read, SEEK_SET); res = ssp_rng_read(rng, cache->stream); if(res != RES_OK) { - CHK(rng_state_cache_dump(cache) == RES_OK); mutex_unlock(mutex); goto error; }