correct an rng mistake in 6e0d55df from Jan 2019

Reported by entrez
This commit is contained in:
nhmall
2022-08-17 20:32:07 -04:00
parent c05a6f3199
commit d3208fa1c3
3 changed files with 8 additions and 1 deletions

View File

@@ -167,6 +167,12 @@ rnd(register int x)
return x;
}
int
rnd_on_display_rng(register int x)
{
return rn2_on_display_rng(x) + 1;
}
/* d(N,X) == NdX == dX+dX+...+dX N times; n <= d(n,x) <= (n*x) */
int
d(register int n, register int x)