Searched refs:ub_random_max (Results 1 - 8 of 8) sorted by relevance

/freebsd-11-stable/contrib/unbound/util/
H A Drandom.h74 long int ub_random_max(struct ub_randstate* state, long int x);
H A Drandom.c101 ub_random_max(struct ub_randstate* state, long int x) function
191 ub_random_max(struct ub_randstate* state, long int x) function
/freebsd-11-stable/contrib/unbound/services/
H A Doutside_network.c224 pi = &w->outnet->ip6_ifs[ub_random_max(w->outnet->rnd, num)];
227 pi = &w->outnet->ip4_ifs[ub_random_max(w->outnet->rnd, num)];
1690 sa->sin6_addr.s6_addr[15-i] = (uint8_t)ub_random_max(rnd, 256);
1695 ((0xFF >> last) & ub_random_max(rnd, 256));
1808 my_if = ub_random_max(outnet->rnd, num_if);
1820 my_port = pif->inuse + ub_random_max(outnet->rnd,
1823 my_port = ub_random_max(outnet->rnd, pif->avail_total);
2063 select = ub_random_max(outnet->rnd, 0xffff - reuse->tree_by_id.count);
3144 i = ub_random_max(outnet->rnd, outnet->num_ip6);
3153 i = ub_random_max(outne
[all...]
/freebsd-11-stable/contrib/unbound/iterator/
H A Diter_utils.c385 ub_random_max(env->rnd, 1000) < env->cfg->fast_server_permil) {
602 sel = ub_random_max(env->rnd, num);
671 sel = ub_random_max(rnd, m);
H A Diterator.c1492 ub_random_max(qstate->env->rnd,
/freebsd-11-stable/contrib/unbound/daemon/
H A Ddaemon.c427 k = ub_random_max(daemon->rand, n+1); /* 0<= k<= n */
H A Dworker.c1201 ub_random_max(worker->env.rnd,
/freebsd-11-stable/contrib/unbound/validator/
H A Dautotrust.c2011 rnd = (time_t)ub_random_max(env->rnd, (long int)rnd);

Completed in 221 milliseconds