Files
pezkuwi-ui/jest/setupEnv.js
T
Jaco 864efca1e6 2.11.3 (#717)
* 2.11.3

* Fix lint

* Update polkadot-dev-run-test

* Adjust jest setupEnv
2023-02-19 15:38:09 +02:00

11 lines
245 B
JavaScript

// Copyright 2017-2023 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import nodeCrypto from 'crypto';
window.crypto ??= {
getRandomValues: function (buffer) {
return nodeCrypto.randomFillSync(buffer);
}
};