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