omg !
This commit is contained in:
parent
7df1e54e6b
commit
024172e2e4
3
funcs.c
3
funcs.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user