-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
uint32_t pcg32_random_r(pcg32_random_t* rng);
I got an error message C4146 when I compiled this function with vs 2013.
the problem is the minus op applied to unsigned type variable rot(in the return code).
Could you change that code like ~rot + 1 instead of -rot.
thanks.
and I think this following issue is minor...
I think xorshifted variable would need a casting op. like this
uint32_t xorshifted = (uint32_t) (((oldstate >> 18u) ^ oldstate) >> 27u);
Metadata
Metadata
Assignees
Labels
No labels