Files
meteor/packages/random/main_server.js
2020-02-25 10:39:44 +01:00

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());