X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=data%2FPVE%2FTools.pm;h=622f8ad02cd430763b5b577e6722436b8cc7489a;hp=f8e9c4773dbe94ed7e57d1c9de5102d96410b85e;hb=46a11c0030d41394aa10c876758abd9cd5a1b16a;hpb=2a75193897142cb55c37331c36b415a23d71b6b6 diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index f8e9c47..622f8ad 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -882,7 +882,9 @@ sub decode_utf8_parameters { sub random_ether_addr { - my $rand = Digest::SHA::sha1_hex(rand(), time()); + my ($seconds, $microseconds) = gettimeofday; + + my $rand = Digest::SHA::sha1_hex($$, rand(), $seconds, $microseconds); my $mac = ''; for (my $i = 0; $i < 6; $i++) {