Run details:
Mozilla/5.0 (Android 7.1.2; Mobile; rv:104.0) Gecko/104.0 Firefox/104.0
Firefox Mobile 104
Android 7.1.2
Mobile
2 years ago
Test name Executions per second
Math.random() 133678680.0 Ops/sec
crypto.getRandomValues() 204376.6 Ops/sec
Tests:
  • Math.random()

    AخA
     
    Math.random()
  • crypto.getRandomValues()

     
    crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296