]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/egd.go
golint fixes
[govpn.git] / src / cypherpunks.ru / govpn / egd.go
index f54c1168d11e0ce4287090e0079678414443316a..f06411f468eeee0f064656314f9b4dae0a2d6991 100644 (file)
@@ -24,10 +24,10 @@ import (
        "net"
 )
 
-var (
-       Rand = rand.Reader
-)
+// Rand is a source of entropy
+var Rand = rand.Reader
 
+// EGDRand is a EGD source of entropy
 type EGDRand string
 
 // Read n bytes from EGD, blocking mode.
@@ -41,6 +41,7 @@ func (egdPath EGDRand) Read(b []byte) (int, error) {
        return io.ReadFull(conn, b)
 }
 
+// EGDInit set random source to a EGD socket
 func EGDInit(path string) {
        Rand = EGDRand(path)
 }