| Index: sdk/lib/_internal/js_runtime/lib/preambles/d8.js
|
| diff --git a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
|
| index 18823e15d9dbaa7953d439d40a6415c493b289c7..b67593a64c53dbe86522039ed7bffaef8cea8b9d 100644
|
| --- a/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
|
| +++ b/sdk/lib/_internal/js_runtime/lib/preambles/d8.js
|
| @@ -327,4 +327,11 @@ if (typeof global != "undefined") self = global; // Node.js.
|
| errorCallback(error);
|
| }
|
| };
|
| +
|
| + // Mock cryptographically secure random by using plain random.
|
| + self.crypto = {getRandomValues: function(array) {
|
| + for (var i = 0; i < array.length; i++) {
|
| + array[i] = Math.random() * 256;
|
| + }
|
| + }};
|
| })(self);
|
|
|