(offset, length int, s *string)
| 83 | } |
| 84 | |
| 85 | func createRandomString(offset, length int, s *string) { |
| 86 | buff := make([]byte, rand.Intn(length)+offset) |
| 87 | rand.Read(buff) |
| 88 | |
| 89 | for i, v := range buff { |
| 90 | buff[i] = v%(0x7f-0x20) + 0x20 |
| 91 | } |
| 92 | |
| 93 | *s = string(buff) |
| 94 | } |
| 95 | |
| 96 | func createRandomStrings(offset, length, soffset, slength int) (s []string) { |
| 97 | s = make([]string, rand.Intn(length)+offset) |
no test coverage detected