star-sp

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

commit c413e00e842a9c791c4ebd8c4a464b8f61a2ff0f
parent 1a338b146cc69c36618ef38660767466c8783488
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 12 Dec 2017 10:15:06 +0100

Fix a warning.

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 @@ -73,7 +73,7 @@ static res_T 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); + RAN_NAMESPACE::mt19937 rng_mt(uint32_t(seed % UINT32_MAX)); ASSERT(kiss); kiss->x = (uint32_t)rng_mt(); do {