Fix getentropy/random_get in Node and shell - #27122
Conversation
PR emscripten-core#26526 refactored random_get to return randomFill()'s value rather than a hardcoded 0, but the node and shell implementations of randomFill() were not updated.
ff25b8c to
1a62dc4
Compare
sbc100
left a comment
There was a problem hiding this comment.
Wow, that must have a pain to debug. Sorry about that :(
|
Yeah it's kind of... special... that |
|
Right, it calls |
And yet it won't coerse the number |
|
Ah so |
Really, I would expect |

PR #26526 refactored random_get to return randomFill()'s value rather than a hardcoded 0, but the node and shell implementations of randomFill() were not updated.