49c49
< __FBSDID("$FreeBSD: head/games/random/random.c 181410 2008-08-08 01:42:17Z ache $");
---
> __FBSDID("$FreeBSD: head/games/random/random.c 181527 2008-08-10 11:31:56Z ache $");
165c165
< return (int)(denom * random() / RANDOM_MAX);
---
> return (int)(denom * random() / RANDOM_MAX_PLUS1);
173c173
< selected = (int)(denom * random() / RANDOM_MAX) == 0;
---
> selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0;
183c183
< selected = (int)(denom * random() / RANDOM_MAX) == 0;
---
> selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0;
< __FBSDID("$FreeBSD: head/games/random/random.c 181410 2008-08-08 01:42:17Z ache $");
---
> __FBSDID("$FreeBSD: head/games/random/random.c 181527 2008-08-10 11:31:56Z ache $");
165c165
< return (int)(denom * random() / RANDOM_MAX);
---
> return (int)(denom * random() / RANDOM_MAX_PLUS1);
173c173
< selected = (int)(denom * random() / RANDOM_MAX) == 0;
---
> selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0;
183c183
< selected = (int)(denom * random() / RANDOM_MAX) == 0;
---
> selected = (int)(denom * random() / RANDOM_MAX_PLUS1) == 0;