MCPcopy Create free account
hub / github.com/numpy/numpy / rk_uint64

Function rk_uint64

numpy/random/src/mt19937/randomkit.c:250–254  ·  view source on GitHub ↗

* Returns an unsigned 64 bit random integer. */

Source from the content-addressed store, hash-verified

248 * Returns an unsigned 64 bit random integer.
249 */
250static inline npy_uint64 rk_uint64(rk_state *state) {
251 npy_uint64 upper = (npy_uint64)rk_random(state) << 32;
252 npy_uint64 lower = (npy_uint64)rk_random(state);
253 return upper | lower;
254}
255
256/*
257 * Returns an unsigned 32 bit random integer.

Callers 1

rk_random_uint64Function · 0.85

Calls 1

rk_randomFunction · 0.85

Tested by

no test coverage detected