/*
GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2017 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"net"
)
-var (
- Rand io.Reader = 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.
return io.ReadFull(conn, b)
}
+// EGDInit set random source to a EGD socket
func EGDInit(path string) {
Rand = EGDRand(path)
}