mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
9 lines
341 B
JavaScript
9 lines
341 B
JavaScript
// We use cryptographically strong PRNGs (crypto.getRandomBytes())
|
|
// When using crypto.getRandomValues(), our primitive is hexString(),
|
|
// from which we construct fraction().
|
|
|
|
import NodeRandomGenerator from './NodeRandomGenerator';
|
|
import createRandom from './createRandom';
|
|
|
|
export const Random = createRandom(new NodeRandomGenerator());
|