(n int, src int64)
| 140 | } |
| 141 | |
| 142 | func randBytesSrc(n int, src int64) []byte { |
| 143 | r := rand.New(rand.NewSource(src)) |
| 144 | s := make([]byte, n) |
| 145 | for i := range s { |
| 146 | s[i] = byte(r.Int63()) |
| 147 | } |
| 148 | return s |
| 149 | } |
| 150 | |
| 151 | func randBytes(n int) []byte { |
| 152 | return randBytesSrc(n, 42) |
no outgoing calls
no test coverage detected