mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added RandomGenerator clearing after obfuscation
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user