working on fakevalues generator
This commit is contained in:
11
funcs.c
11
funcs.c
@@ -3,14 +3,25 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "funcs.h"
|
||||
|
||||
extern int verbosity;
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
int seed_my_rand(int foo)
|
||||
{
|
||||
long v1, v2;
|
||||
|
||||
v1 = getpid(); v2 = time(NULL);
|
||||
|
||||
return v1 ^ v2;
|
||||
}
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
int random1000(int type)
|
||||
|
||||
Reference in New Issue
Block a user