star-sp

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

commit 0890651988b8145a5d6c1ba21939f20a4b821fef
parent 48a7e0dcf119f8f61c7d3a72cea4496b7ebde738
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  7 Sep 2017 11:50:38 +0200

Fix the signature of the KISS "set" function

Diffstat:
Msrc/ssp_rng.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ssp_rng.c b/src/ssp_rng.c @@ -70,7 +70,7 @@ struct rng_kiss { uint32_t x, y, z, c; }; static res_T -rng_kiss_set(void* data, const size_t seed) +rng_kiss_set(void* data, const uint64_t seed) { struct rng_kiss* kiss = (struct rng_kiss*)data; RAN_NAMESPACE::mt19937 rng_mt(seed % UINT32_MAX);