| 1 | package jsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/ |
| 2 | |
| 3 | import ( |
| 4 | "math/randscip-go gomod github.com/golang/go/src go1.16 `math/rand`/" |
| 5 | "netscip-go gomod github.com/golang/go/src go1.16 net/" |
| 6 | "github.com/bettercap/bettercap/networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/" |
| 7 | ) |
| 8 | |
| 9 | type randomPackagescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/randomPackage# struct { |
| 10 | } |
| 11 | |
| 12 | func (c randomPackagescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/randomPackage#) Stringscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/randomPackage#String().(size int, charset string) string { |
| 13 | runes := []rune(charset) |
| 14 | nrunes := len(runes) |
| 15 | buf := make([]rune, size) |
| 16 | for i := range buf { |
| 17 | buf[i] = runes[randscip-go gomod github.com/golang/go/src go1.16 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.16 `math/rand`/Intn().(nrunes)] |
| 18 | } |
| 19 | return string(buf) |
| 20 | } |
| 21 | |
| 22 | func (c randomPackagescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/randomPackage#) Macscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/js`/randomPackage#Mac().() string { |
| 23 | hw := make([]byte, 6) |
| 24 | randscip-go gomod github.com/golang/go/src go1.16 `math/rand`/.Readscip-go gomod github.com/golang/go/src go1.16 `math/rand`/Read().(hw) |
| 25 | return networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/.NormalizeMacscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/NormalizeMac().(netscip-go gomod github.com/golang/go/src go1.16 net/.HardwareAddrscip-go gomod github.com/golang/go/src go1.16 net/HardwareAddr#(hw).Stringscip-go gomod github.com/golang/go/src go1.16 net/HardwareAddr#String().()) |
| 26 | } |