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.
This commit is contained in:
John "Elwin" Edwards 2017-01-28 15:49:41 -05:00
parent c194ec3dc9
commit 62047972cc
29 changed files with 123 additions and 81 deletions

View file

@ -1505,6 +1505,7 @@ int md_getuid(void);
long md_memused(void);
int md_normaluser(void);
int md_rand(int range);
unsigned int md_random_seed(void);
void md_setup(void);
int md_shellescape(void);
int md_srand(int seed);