diff options
Diffstat (limited to 'ubi-utils/src/ubiformat.c')
-rw-r--r-- | ubi-utils/src/ubiformat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index 54363d7..62375a6 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -29,7 +29,6 @@ */ #define MAX_CONSECUTIVE_BAD_BLOCKS 4 -#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdint.h> @@ -130,8 +129,8 @@ static const struct option long_options[] = { static int parse_opt(int argc, char * const argv[]) { - srand(getpid()); - args.image_seq = random(); + ubiutils_srand(); + args.image_seq = rand(); while (1) { int key; |