mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 20:48:03 +00:00
16dbecf0d2
* Bump @polkadot/dev * Rebump dev * Add crypto polyfill * Adjust expectations
11 lines
248 B
JavaScript
11 lines
248 B
JavaScript
// Copyright 2017-2022 @polkadot/ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const nodeCrypto = require('crypto');
|
|
|
|
window.crypto = {
|
|
getRandomValues: function (buffer) {
|
|
return nodeCrypto.randomFillSync(buffer);
|
|
}
|
|
};
|