Use uniformly distributed, cryptographically secure random numbers.

Merged
#1 · Created  · Last updated

Merged pull request

Merged in improved-random (pull request #1)

12e356d·Author: ·Closed by: ·2020-07-25

Description

This introduces a new function getUniformRandomInteger that uses the crypto API and produces uniformly distributed random numbers.

It will throw an Error when the crypto API is not available and alert the user (I can change this and fall back to using Math.random() in this case if you want though).

0 attachments

0 comments

Loading commits...