12345678910111213141516171819202122232425 |
- @@ -0,0 +1,24 @@
- +diff --git a/crypto/lib/crypto-lib.js b/crypto/lib/crypto-lib.js
- +index 5cd9994..6fb1459 100644
- +--- a/crypto/lib/crypto-lib.js
- ++++ b/crypto/lib/crypto-lib.js
- +@@ -379,6 +379,9 @@ function cryptolib() {
- + var callback = args.pop();
- +
- + this.policies = callback.policies || cryptolibPolicies;
- ++ if ( !cryptolibPolicies ) {
- ++ cryptolibPolicies = this.policies;
- ++ }
- + this.prng = callback.prng || cryptoPRNG.getPRNG();
- +
- + // modules can be passed as an array or as individual parameters
- +@@ -12103,3 +12106,9 @@ cryptolib.modules.symmetric.service = function (box) {
- + arrayDataBase64);
- + };
- + };
- ++
- ++cryptolib.cryptoPRNG = cryptoPRNG;
- ++cryptolib.Config = Config;
- ++if (typeof module !== 'undefined') {
- ++ module.exports = cryptolib;
- ++};
|