Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
45
u_long
46
random(void)
47
{
48
return (prng32() & 0x7fffffff);
49
}
Callers
15
ipfw_chk
Function · 0.50
fq_pie_new_sched
Function · 0.50
drop_early
Function · 0.50
fq_codel_new_sched
Function · 0.50
red_drops
Function · 0.50
dn_enqueue
Function · 0.50
extra_bits
Function · 0.50
main
Function · 0.50
prob_backoff
Function · 0.50
should_backoff
Function · 0.50
should_backoff
Function · 0.50
fail_point_eval_nontrivial
Function · 0.50
Calls
1
prng32
Function · 0.85
Tested by
1
main
Function · 0.40