()
| 1028 | const u8s = new Uint8Array(maxId8); |
| 1029 | let id8 = maxId8; |
| 1030 | const getRandomUint8 = () => { |
| 1031 | if (id8 >= maxId8) { |
| 1032 | crypto.getRandomValues(u8s); |
| 1033 | id8 = 0; |
| 1034 | } |
| 1035 | |
| 1036 | const result = u8s[id8]; |
| 1037 | id8++; |
| 1038 | return result; |
| 1039 | }; |
| 1040 | |
| 1041 | Reflect.defineProperty(Habitat.Random, "Uint8", { |
| 1042 | get: getRandomUint8, |
nothing calls this directly
no outgoing calls
no test coverage detected