typical use
| 122 | |
| 123 | // typical use |
| 124 | uint8_t throwDice() |
| 125 | { |
| 126 | if (__randomIdx < 16) |
| 127 | { |
| 128 | __randomBuffer = getRandom32(); |
| 129 | __randomIdx = 32; |
| 130 | } |
| 131 | uint16_t rv = __randomBuffer % 6 + 1; |
| 132 | __randomBuffer >>= 3; |
| 133 | __randomIdx -= 3; |
| 134 | return rv; |
| 135 | } |
| 136 | |
| 137 | |
| 138 | uint8_t getRandom8() |
nothing calls this directly
no test coverage detected