From: Michael Tremer Date: Thu, 13 Aug 2015 18:32:29 +0000 (+0200) Subject: mac_generate: Refactor to make this function faster X-Git-Tag: 007~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb1416c6b10f43fe85f2a3e6f5253679e8e0a5ea;p=network.git mac_generate: Refactor to make this function faster Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.util b/src/functions/functions.util index fdb2ce47..de2cb1e6 100644 --- a/src/functions/functions.util +++ b/src/functions/functions.util @@ -157,36 +157,20 @@ enabled() { } mac_generate() { - # Get a bunch of random hex digits - # and remove all dashes from the input. - local random=$(