1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-19 03:00:29 +01:00

Save 1.4 MiB of memory

This commit is contained in:
Frank Denis 2021-03-08 15:36:30 +01:00
parent 09866acdb5
commit b1e96b69fd

View File

@ -29,6 +29,7 @@ type App struct {
func main() {
TimezoneSetup()
dlog.Init("dnscrypt-proxy", dlog.SeverityNotice, "DAEMON")
runtime.MemProfileRate = 0
seed := make([]byte, 8)
crypto_rand.Read(seed)