Mercurial > hg > early-roguelike
diff arogue7/rogue.h @ 252:3d4252fa2ed3
Use more portable random seed generation.
The new function md_random_seed() has replaced time() + getpid() and
similar methods. Putting everything in mdport.c slightly reduces the
warnings and workarounds.
author | John "Elwin" Edwards |
---|---|
date | Sat, 28 Jan 2017 15:49:41 -0500 |
parents | e1cd27c5464f |
children | d3968e9cb98d |
line wrap: on
line diff
--- a/arogue7/rogue.h Sat Jan 28 11:45:36 2017 -0500 +++ b/arogue7/rogue.h Sat Jan 28 15:49:41 2017 -0500 @@ -1418,6 +1418,7 @@ long md_memused(void); int md_normaluser(void); int md_rand(void); +unsigned int md_random_seed(void); void md_reopen_score(void); int md_readchar(WINDOW *win); int md_shellescape(void);