]> granicus.if.org Git - nethack/commit
Use rn2() instead of Rand() for selection_do_randline()
authorTung Nguyen <tungtn3@gmail.com>
Fri, 1 Apr 2016 04:15:50 +0000 (15:15 +1100)
committerTung Nguyen <tungtn3@gmail.com>
Sat, 2 Apr 2016 01:41:35 +0000 (12:41 +1100)
commit24bd638356075cb7f59d6cb78b118588a6a18490
treeb8f051ffa7750fe9941c211ae25741e631b41f0f
parentca979cbc2b435f5a68b5c3a3c0379307a494ec87
Use rn2() instead of Rand() for selection_do_randline()

That is, use NetHack's RNG instead of the direct system RNG.  This fixes
maps generated with randlines to interact correctly with potential
future RNG system changes e.g. switching PRNG algorithms, supporting
NAO343's RNG reseeding, and even supporting replays like NetHack 4.

Based on DynaHack commit e464f63 (lev_comp: Fix system RNG use in
randline) by me.
src/sp_lev.c