Skip to content

Commit 33bee1d

Browse files
committed
Do not print stuff in the library
1 parent 5faa6cf commit 33bee1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ func getRandomIP() (*net.IP, error) {
105105
ipo, ipnet, err := net.ParseCIDR("100.64.0.0/10")
106106
if err == nil {
107107
ip := ipo.To4()
108-
fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet)
109-
fmt.Println("Final address is ", ip)
108+
// fmt.Println("In Randomize IPAddr: IP ", ip, " IPNET: ", ipnet)
109+
// fmt.Println("Final address is ", ip)
110110
// fmt.Println("Broadcast address is ", ipb)
111111
// fmt.Println("Network address is ", ipn)
112112
r := mathrand.Uint32()
@@ -119,7 +119,7 @@ func getRandomIP() (*net.IP, error) {
119119
ip[i] = ip[i] + (v &^ ipnet.Mask[i])
120120
// fmt.Println("IP After: ", ip[i])
121121
}
122-
fmt.Println("FINAL IP: ", ip.String())
122+
// fmt.Println("FINAL IP: ", ip.String())
123123
return &ip, nil
124124
}
125125

0 commit comments

Comments
 (0)