From 33bee1df05c2d57ac47a9d6edad60b71dc21b37b Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sat, 8 May 2021 13:27:40 +0200 Subject: [PATCH] Do not print stuff in the library --- utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils.go b/utils.go index 27857455..55310c8d 100644 --- a/utils.go +++ b/utils.go @@ -105,8 +105,8 @@ func getRandomIP() (*net.IP, error) { ipo, ipnet, err := net.ParseCIDR("100.64.0.0/10") if err == nil { ip := ipo.To4() - fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet) - fmt.Println("Final address is ", ip) + // fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet) + // fmt.Println("Final address is ", ip) // fmt.Println("Broadcast address is ", ipb) // fmt.Println("Network address is ", ipn) r := mathrand.Uint32() @@ -119,7 +119,7 @@ func getRandomIP() (*net.IP, error) { ip[i] = ip[i] + (v &^ ipnet.Mask[i]) // fmt.Println("IP After: ", ip[i]) } - fmt.Println("FINAL IP: ", ip.String()) + // fmt.Println("FINAL IP: ", ip.String()) return &ip, nil }