Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 3 of 3) sorted by relevance

/xnu-11215.81.4/bsd/kern/
H A Dkern_acct.c334 int exp, rnd; in encode_comp_t() local
337 rnd = 0; in encode_comp_t()
342 rnd = s & (1 << (EXPSIZE - 1)); /* Round up? */ in encode_comp_t()
348 if (rnd && (++s > MAXFRACT)) { in encode_comp_t()
/xnu-11215.81.4/bsd/net/classq/
H A Dclassq.c440 u_int32_t rnd; in _getq_random_mbuf() local
455 read_frandom(&rnd, sizeof(rnd)); in _getq_random_mbuf()
456 n = (rnd % n) + 1; in _getq_random_mbuf()
/xnu-11215.81.4/bsd/netinet/
H A Dtcp_input.c7140 static uint32_t rnd = 0; in tcp_dropdropablreq() local
7196 if (rnd == 0) { in tcp_dropdropablreq()
7197 rnd = RandomULong(); in tcp_dropdropablreq()
7201 rnd = (314159 * rnd + 66329) & 0xffff; in tcp_dropdropablreq()
7202 j = ((qlen + 1) * rnd) >> 16; in tcp_dropdropablreq()