When starting multiple concurrent jobs with rbd_fsx task, all jobs get
the same seed.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
#include <unistd.h>
#include <getopt.h>
#include <limits.h>
-#include <time.h>
#include <strings.h>
#if defined(__FreeBSD__)
#include <sys/disk.h>
case 'S':
seed = getnum(optarg, &endp);
if (seed == 0)
- seed = time(0) % 10000;
+ seed = std::random_device()() % 10000;
if (!quiet)
fprintf(stdout, "Seed set to %d\n", seed);
if (seed < 0)