Home
last modified time | relevance | path

Searched refs:ub_random_max (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/unbound/util/
H A Drandom.c101 ub_random_max(struct ub_randstate* state, long int x) in ub_random_max() function
191 ub_random_max(struct ub_randstate* state, long int x) in ub_random_max() function
H A Drandom.h74 long int ub_random_max(struct ub_randstate* state, long int x);
H A Dnetevent.c1591 unused_random = ub_random_max(c->doq_socket->rnd, 256);
/freebsd/contrib/unbound/services/
H A Doutside_network.c232 pi = &w->outnet->ip6_ifs[ub_random_max(w->outnet->rnd, num)]; in pick_outgoing_tcp()
235 pi = &w->outnet->ip4_ifs[ub_random_max(w->outnet->rnd, num)]; in pick_outgoing_tcp()
1978 sa->sin6_addr.s6_addr[15-i] = (uint8_t)ub_random_max(rnd, 256);
1983 ((0xFF >> last) & ub_random_max(rnd, 256));
2111 my_if = ub_random_max(outnet->rnd, num_if);
2123 my_port = pif->inuse + ub_random_max(outnet->rnd,
2126 my_port = ub_random_max(outnet->rnd, pif->avail_total);
2377 select = ub_random_max(outnet->rnd, 0xffff - reuse->tree_by_id.count);
3475 ub_random_max(env->rnd,
3587 i = ub_random_max(outnet->rnd, outnet->num_ip6);
[all …]
/freebsd/contrib/unbound/iterator/
H A Diter_utils.c423 ub_random_max(env->rnd, 1000) < env->cfg->fast_server_permil) { in iter_filter_order()
642 sel = ub_random_max(env->rnd, num); in iter_server_selection()
711 sel = ub_random_max(rnd, m); in iter_ns_probability()
H A Diterator.c3024 && !ub_random_max(qstate->env->rnd, 10)) { in processQueryTargets()
/freebsd/contrib/unbound/daemon/
H A Ddaemon.c504 k = ub_random_max(daemon->rand, n+1); /* 0<= k<= n */ in daemon_get_shufport()
H A Dworker.c1344 ub_random_max(worker->env.rnd, in check_ip_ratelimit()
/freebsd/contrib/unbound/validator/
H A Dautotrust.c2024 rnd = (time_t)ub_random_max(env->rnd, (long int)rnd); in calc_next_probe()
H A Dvalidator.c856 usec = base + ub_random_max(qstate->env->rnd, usec-base); in validate_suspend_setup_timer()