Searched refs:ub_random_max (Results 1 – 10 of 10) sorted by relevance
/freebsd/contrib/unbound/util/ |
H A D | random.c | 101 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 D | random.h | 74 long int ub_random_max(struct ub_randstate* state, long int x);
|
H A D | netevent.c | 1591 unused_random = ub_random_max(c->doq_socket->rnd, 256);
|
/freebsd/contrib/unbound/services/ |
H A D | outside_network.c | 232 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 D | iter_utils.c | 423 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 D | iterator.c | 3024 && !ub_random_max(qstate->env->rnd, 10)) { in processQueryTargets()
|
/freebsd/contrib/unbound/daemon/ |
H A D | daemon.c | 504 k = ub_random_max(daemon->rand, n+1); /* 0<= k<= n */ in daemon_get_shufport()
|
H A D | worker.c | 1344 ub_random_max(worker->env.rnd, in check_ip_ratelimit()
|
/freebsd/contrib/unbound/validator/ |
H A D | autotrust.c | 2024 rnd = (time_t)ub_random_max(env->rnd, (long int)rnd); in calc_next_probe()
|
H A D | validator.c | 856 usec = base + ub_random_max(qstate->env->rnd, usec-base); in validate_suspend_setup_timer()
|