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

Function random_positive_int32

numpy/random/src/distributions/distributions.c:316–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316int32_t random_positive_int32(bitgen_t *bitgen_state) {
317 return next_uint32(bitgen_state) >> 1;
318}
319
320int64_t random_positive_int(bitgen_t *bitgen_state) {
321#if ULONG_MAX <= 0xffffffffUL

Callers

nothing calls this directly

Calls 1

next_uint32Function · 0.85

Tested by

no test coverage detected