This commit is contained in:
tTh 2019-04-01 20:44:54 +02:00
parent 7df1e54e6b
commit 024172e2e4

View File

@ -14,16 +14,15 @@
extern int verbosity; extern int verbosity;
/* --------------------------------------------------------------- */ /* --------------------------------------------------------------- */
/* maybe not a really goof initialisation... */
int seed_my_rand(int foo) int seed_my_rand(int foo)
{ {
long v1, v2; long v1, v2;
v1 = getpid(); v2 = time(NULL); v1 = getpid(); v2 = time(NULL);
return v1 ^ v2; return v1 ^ v2;
} }
/* --------------------------------------------------------------- */ /* --------------------------------------------------------------- */
int random1000(int type) int random1000(int type)
{ {
int value; int value;