|
All checks were successful
CI / build-test-release (pull_request) Successful in 7m50s
The random_get import was stubbed to return success without writing any bytes, so every std::random_device user in wasm got all-zero "randomness". This collided WebRTC peer ids across browser tabs in 3DForts (Catcrafts/3DForts#50). Fill the target buffer from crypto.getRandomValues (a CSPRNG), chunking at 65536 bytes to stay under WebCrypto's per-call quota, and add random_get to the bind list since it now touches this.instance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| index.html.in | ||
| runtime.js | ||