From 8c88cf7ce799548d2e56c9ec74d548d051785af9 Mon Sep 17 00:00:00 2001 From: brl Date: Sat, 6 Jun 2015 14:28:37 -0400 Subject: [PATCH] chown oz-init-control socket --- ipc/ipc.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ipc/ipc.go b/ipc/ipc.go index 56123c4..0d230cd 100644 --- a/ipc/ipc.go +++ b/ipc/ipc.go @@ -8,8 +8,6 @@ import ( "github.com/op/go-logging" "reflect" - "crypto/rand" - "encoding/hex" "fmt" "io" ) @@ -128,18 +126,6 @@ func idGenLoop(done <-chan bool, out chan <- int) { } } -func CreateRandomAddress(prefix string) (string,error) { - var bs [16]byte - n,err := rand.Read(bs[:]) - if n != len(bs) { - return "", errors.New("incomplete read of random bytes for client name") - } - if err != nil { - return "", errors.New("error reading random bytes for client name: "+ err.Error()) - } - return prefix+ hex.EncodeToString(bs[:]),nil -} - func (mc *MsgConn) readLoop() { for { if mc.processOneMessage() {