randomBits completely fills slice b with random data.
(b []byte)
| 10 | |
| 11 | // randomBits completely fills slice b with random data. |
| 12 | func randomBits(b []byte) { |
| 13 | if _, err := io.ReadFull(rander, b); err != nil { |
| 14 | panic(err.Error()) // rand should never fail |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | // xvalues returns the value of a byte as a hexadecimal digit or 255. |
| 19 | var xvalues = [256]byte{ |
no test coverage detected