Add darkfeline's change to set ifname if no interface is found.
diff --git a/node.go b/node.go
index 3e4e90d..d651a2b 100644
--- a/node.go
+++ b/node.go
@@ -48,6 +48,7 @@
 	// does not specify a specific interface generate a random Node ID
 	// (section 4.1.6)
 	if name == "" {
+		ifname = "random"
 		randomBits(nodeID[:])
 		return true
 	}