Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
251:e7862a021609 | 252:3d4252fa2ed3 |
---|---|
1416 void md_init(void); | 1416 void md_init(void); |
1417 int md_killchar(void); | 1417 int md_killchar(void); |
1418 long md_memused(void); | 1418 long md_memused(void); |
1419 int md_normaluser(void); | 1419 int md_normaluser(void); |
1420 int md_rand(void); | 1420 int md_rand(void); |
1421 unsigned int md_random_seed(void); | |
1421 void md_reopen_score(void); | 1422 void md_reopen_score(void); |
1422 int md_readchar(WINDOW *win); | 1423 int md_readchar(WINDOW *win); |
1423 int md_shellescape(void); | 1424 int md_shellescape(void); |
1424 int md_srand(int seed); | 1425 int md_srand(int seed); |
1425 int md_unlink(char *file); | 1426 int md_unlink(char *file); |