mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
common/edit: Don't use random() function.
Generate the random filename using our utility function guestfs_int_random_string. This also means that we will not need to call srandom() in guestfish or virt-edit.
This commit is contained in:
@@ -102,9 +102,6 @@ main (int argc, char *argv[])
|
||||
bindtextdomain (PACKAGE, LOCALEBASEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
/* We use random(3) below. */
|
||||
srandom (time (NULL));
|
||||
|
||||
enum { HELP_OPTION = CHAR_MAX + 1 };
|
||||
|
||||
static const char options[] = "a:b:c:d:e:m:vVx";
|
||||
|
||||
Reference in New Issue
Block a user