Skip to content

Commit

Permalink
srandom is already called in main
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Mudrunka <[email protected]>
  • Loading branch information
Harvie committed Dec 30, 2024
1 parent 5d4a6d1 commit ff8f6a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions image-mdraid.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,8 @@ static int mdraid_setup(struct image *image, cfg_t *cfg) {
image->handler_priv = md;

//Common MDRAID subsystem init
if (!mdraid_time) {
if (!mdraid_time)
mdraid_time = time(NULL);
srandom(mdraid_time); //For UUID generation
}

//Sanity checks
int raid_level = cfg_getint(image->imagesec, "level");
Expand Down

0 comments on commit ff8f6a5

Please sign in to comment.