Added RandomGenerator clearing after obfuscation

This commit is contained in:
sanex3339
2017-01-07 18:19:33 +03:00
parent 2b1f78e587
commit 4e5cf5ad0d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ var RandomGeneratorUtils = function () {
value: function getRandomGenerator() {
var randomGenerator = RandomGeneratorUtils.randomGenerator;
if (!randomGenerator) {
throw new Error("`randomGenerator` static property is undefined");
RandomGeneratorUtils.initializeRandomGenerator(0);
}
return RandomGeneratorUtils.randomGenerator;
}
+1 -1
View File
@@ -58,7 +58,7 @@ export class RandomGeneratorUtils {
const randomGenerator: Chance.Chance = RandomGeneratorUtils.randomGenerator;
if (!randomGenerator) {
throw new Error(`\`randomGenerator\` static property is undefined`);
RandomGeneratorUtils.initializeRandomGenerator(0);
}
return RandomGeneratorUtils.randomGenerator;