chown oz-init-control socket

networking
brl 9 years ago
parent cb4f6eb65b
commit 8c88cf7ce7

@ -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() {

Loading…
Cancel
Save