summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubinize.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/ubinize.c')
-rw-r--r--ubi-utils/src/ubinize.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ubi-utils/src/ubinize.c b/ubi-utils/src/ubinize.c
index 74ddc0f..ab5b0b8 100644
--- a/ubi-utils/src/ubinize.c
+++ b/ubi-utils/src/ubinize.c
@@ -25,12 +25,9 @@
*/
#include <sys/stat.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
-#include <unistd.h>
#include <fcntl.h>
#include <mtd/ubi-media.h>
@@ -157,8 +154,8 @@ static struct args args = {
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;