Mercurial > hg > early-roguelike
comparison xrogue/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 |
|---|---|
| 1503 | 1503 |
| 1504 int md_getuid(void); | 1504 int md_getuid(void); |
| 1505 long md_memused(void); | 1505 long md_memused(void); |
| 1506 int md_normaluser(void); | 1506 int md_normaluser(void); |
| 1507 int md_rand(int range); | 1507 int md_rand(int range); |
| 1508 unsigned int md_random_seed(void); | |
| 1508 void md_setup(void); | 1509 void md_setup(void); |
| 1509 int md_shellescape(void); | 1510 int md_shellescape(void); |
| 1510 int md_srand(int seed); | 1511 int md_srand(int seed); |
| 1511 | 1512 |
| 1512 /* | 1513 /* |
