diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-08 21:56:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-08 21:56:29 +0000 |
commit | d98fdfe46793569057c86d781400222a9c0b23fe (patch) | |
tree | aed801ec7f9bff5887d23276292602ef7efccb2b /games/hack/hack.main.c | |
parent | 5482618595acf6e20d70cfe9d0228731eb472567 (diff) |
For now, these games still contain deterministic randomization (for
save / replay modes of operation that have not yet been cleaned up).
OK, I've let the cat out of the bag, now some of you know you can cheat
at them..
ok millert guenther tedu
Diffstat (limited to 'games/hack/hack.main.c')
-rw-r--r-- | games/hack/hack.main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/games/hack/hack.main.c b/games/hack/hack.main.c index 6c28c8738e5..045d4e9cc61 100644 --- a/games/hack/hack.main.c +++ b/games/hack/hack.main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.main.c,v 1.15 2009/10/27 23:59:25 deraadt Exp $ */ +/* $OpenBSD: hack.main.c,v 1.16 2014/12/08 21:56:27 deraadt Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -177,7 +177,6 @@ main(int argc, char **argv) gettty(); setbuf(stdout,obuf); umask(007); - srandomdev(); startup(); cls(); u.uhp = 1; /* prevent RIP on early quits */ @@ -275,7 +274,7 @@ main(int argc, char **argv) if ((sfoo = getenv("MAGIC"))) while(*sfoo) { switch(*sfoo++) { - case 'n': (void) srandom(*sfoo++); + case 'n': (void) srandom_deterministic(*sfoo++); break; } } |