diff options
author | deraadt <deraadt@openbsd.org> | 1998-02-14 20:40:37 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 1998-02-14 20:40:37 +0000 |
commit | 296f1046f19cecc6a7a6a3d11b5616a952a011e2 (patch) | |
tree | bfeeb26550aa59957afdd78934bd7fed3fbd3201 /games/wump/wump.c | |
parent | (no commit message) (diff) | |
download | wireguard-openbsd-296f1046f19cecc6a7a6a3d11b5616a952a011e2.tar.xz wireguard-openbsd-296f1046f19cecc6a7a6a3d11b5616a952a011e2.zip |
further fixes from pjanzen@foatdi.harvard.edu
Diffstat (limited to 'games/wump/wump.c')
-rw-r--r-- | games/wump/wump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/wump/wump.c b/games/wump/wump.c index 29177b3d1b3..4b7994d9b9a 100644 --- a/games/wump/wump.c +++ b/games/wump/wump.c @@ -578,7 +578,7 @@ cave_init() cave[i].tunnel[j] = -1; /* choose a random 'hop' delta for our guaranteed link */ - while (!(delta = random() % (room_num - 1))); + while (!(delta = random() % ((room_num - 1) / 2))); for (i = 1; i <= room_num; ++i) { link = ((i + delta) % room_num) + 1; /* connection */ |