iter_ns_probability(struct ub_randstate* rnd, int n, int m)
{
	int sel;
	if(n == m) /* 100% chance */
		return 1;
	/* we do not need secure random numbers here, but
	 * we do need it to be threadsafe, so we use this */
	sel = ub_random_max(rnd, m);
	return (sel < n);
}
iter_ns_probability(struct ub_randstate* rnd, int n, int m)
{
	int sel;
	if(n == m)  
		return 1;
	 
	sel = ub_random_max(rnd, m);
	return (sel < n);
}