summaryrefslogtreecommitdiff
path: root/rand.c
blob: 407f86012a59e4b759a39a04c497240c65f13502 (plain)
1
2
3
4
static U32 rand_u32(U32 seed) {
	U64 seed64 = (U64)seed;
	return (U32)((seed64 * 0x832f0fda4e1a8642 + 0x41d49cd5459a2ab4) >> 32);
}