MCPcopy Create free account
hub / github.com/F-Stack/f-stack / random

Function random

freebsd/libkern/random.c:45–49  ·  view source on GitHub ↗

* Pseudo-random number generator. The result is uniform in [0, 2^31 - 1]. */

Source from the content-addressed store, hash-verified

43 * Pseudo-random number generator. The result is uniform in [0, 2^31 - 1].
44 */
45u_long
46random(void)
47{
48 return (prng32() & 0x7fffffff);
49}

Callers 15

ipfw_chkFunction · 0.50
fq_pie_new_schedFunction · 0.50
drop_earlyFunction · 0.50
fq_codel_new_schedFunction · 0.50
red_dropsFunction · 0.50
dn_enqueueFunction · 0.50
extra_bitsFunction · 0.50
mainFunction · 0.50
prob_backoffFunction · 0.50
should_backoffFunction · 0.50
should_backoffFunction · 0.50

Calls 1

prng32Function · 0.85

Tested by 1

mainFunction · 0.40