()
| 2833 | // use a buffer to avoid overhead of individual crypto calls per byte |
| 2834 | var randomBuffer = new Uint8Array(1024), randomLeft = 0; |
| 2835 | var randomByte = () => { |
| 2836 | if (randomLeft === 0) { |
| 2837 | randomLeft = randomFill(randomBuffer).byteLength; |
| 2838 | } |
| 2839 | return randomBuffer[--randomLeft]; |
| 2840 | }; |
| 2841 | FS.createDevice('/dev', 'random', randomByte); |
| 2842 | FS.createDevice('/dev', 'urandom', randomByte); |
| 2843 | // we're not going to emulate the actual shm device, |
nothing calls this directly
no test coverage detected