From 57c17b6cef8cca4055c65e606191c1a68b73dd73 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 6 Nov 2014 21:46:12 +0000 Subject: [PATCH] use /dev/urandom instead of /dev/random to avoid blocking ...since in some typical deployment scenarios, e.g. small, minimal VMs, not enough entropy may be available. Fixes #170. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index c50a1d6b..06dd7ba9 100755 --- a/weave +++ b/weave @@ -109,7 +109,7 @@ delete_iptables_rule() { create_bridge() { [ ! -d /sys/class/net/$BRIDGE ] && { ip link add name $BRIDGE type bridge - ip link set dev $BRIDGE address 7a:$(od -txC -An -N5 /dev/random | tr \ : | tail -c+2) + ip link set dev $BRIDGE address 7a:$(od -txC -An -N5 /dev/urandom | tr \ : | tail -c+2) # Attempting to set the bridge MTU to a high value directly # fails. Bridges take the lowest MTU of their interfaces. So # instead we create a temporary interface with the desired