Searched refs:two_raise_31 (Results 1 – 1 of 1) sorted by relevance
34 constexpr uint32_t two_raise_31 = uint32_t(1) << 31; in generate_uniform_random_number() local35 *rng_state = (1103515245 * *rng_state + 12345) % two_raise_31; in generate_uniform_random_number()36 return *rng_state / static_cast<double>(two_raise_31); in generate_uniform_random_number()