Mercurial > repos > blastem
diff ztestgen.c @ 1746:cd6f4cea97b6
Call srand in Z80 test generator so different values are used when regenerating tests
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 06 Feb 2019 08:54:56 -0800 |
parents | a6c6b621d0dc |
children | 10c7f1e44c47 |
line wrap: on
line diff
--- a/ztestgen.c Wed Feb 06 08:54:09 2019 -0800 +++ b/ztestgen.c Wed Feb 06 08:54:56 2019 -0800 @@ -11,6 +11,7 @@ #include <sys/stat.h> #include <sys/types.h> #include <errno.h> +#include <time.h> extern z80inst z80_tbl_a[256]; extern z80inst z80_tbl_extd[0xC0-0x40]; @@ -530,6 +531,7 @@ int main(int argc, char ** argv) { + srand(time(NULL)); z80_gen_all(); return 0; }