@travi/any
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -12,3 +12,4 @@ 'use strict'; | ||
var generator = new MersenneTwister(); | ||
var seed = process.env.ANY_SEED || generator.random(); | ||
// Multiply the random seed to match chance.js | ||
var seed = process.env.ANY_SEED || generator.random() * Math.pow(10, 13); | ||
debug('randomness seed: ' + seed); | ||
@@ -15,0 +16,0 @@ |
@@ -8,3 +8,4 @@ import _ from 'lodash'; | ||
var generator = new MersenneTwister(); | ||
var seed = process.env.ANY_SEED || generator.random(); | ||
// Multiply the random seed to match chance.js | ||
var seed = process.env.ANY_SEED || generator.random() * Math.pow(10, 13); | ||
debug('randomness seed: ' + seed); | ||
@@ -11,0 +12,0 @@ |
{ | ||
"name": "@travi/any", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "random data generator for when test data is insignificant", | ||
@@ -48,2 +48,3 @@ "main": "lib/any.cjs.js", | ||
"babel-cli": "6.24.1", | ||
"babel-plugin-transform-exponentiation-operator": "6.24.1", | ||
"babel-preset-es2015-node": "6.1.1", | ||
@@ -50,0 +51,0 @@ "babel-preset-es2015-rollup": "3.0.0", |
@@ -10,3 +10,4 @@ /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ | ||
exclude: ['./node_modules/**'], | ||
presets: ['es2015-rollup'] | ||
presets: ['es2015-rollup'], | ||
plugins: ['babel-plugin-transform-exponentiation-operator'] | ||
}) | ||
@@ -13,0 +14,0 @@ ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18117
13
213
26