#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
+#include <sys/time.h>
void print_help(char name[])
{
int i, rand_value, sum;
int retvals[100];
int percentages[100];
+ struct timeval td;
if (argc==2 && strcmp("--help",argv[1])==0 )
{
/* Get random number in interval [0,100) */
- srand(time(0));
+ gettimeofday(&td,0);
+ srand(td.tv_usec);
rand_value = rand() % 100;
/* See if we want to fire an "error" */