diff --git a/fake-values.c b/fake-values.c index 4ba730c..d1b6a8c 100644 --- a/fake-values.c +++ b/fake-values.c @@ -4,6 +4,7 @@ #include #include +#include #include "funcs.h" @@ -15,16 +16,17 @@ int main(int argc, char *argv[]) { int opt; -while ((opt = getopt(argc, argv, "v")) != -1) { +while ((opt = getopt(argc, argv, "vs")) != -1) { switch (opt) { - case 'v': verbosity++; break; - default: break; + case 'v': verbosity++; break; + case 's': srand(getpid()); break; + default: break; } } -if (verbosity > 1) +if (verbosity > 1) { fprintf(stderr, "fake values - %s %s\n", __DATE__, __TIME__); - + } printf("%f %d\n", dtime(), random1000(0));