From 3cc31ea8d385e074909edf7a9173860027d068f0 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 17 Dec 2018 04:15:32 +0000 Subject: [PATCH] scripts/qemustart: more compact rand_mac() Signed-off-by: Yousong Zhou --- scripts/qemustart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemustart b/scripts/qemustart index 5af93b9aed..5bb8ca5f3a 100755 --- a/scripts/qemustart +++ b/scripts/qemustart @@ -113,7 +113,7 @@ EOF } rand_mac() { - hexdump -n 3 -e '"52:54:00:" 2/1 "%02x:" 1/1 "%02x"' /dev/urandom + hexdump -n 3 -e '"52:54:00" 3/1 ":%02x"' /dev/urandom } parse_args() {