mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
8 lines
307 B
JavaScript
8 lines
307 B
JavaScript
import nodeCrypto from 'node:crypto';
|
|
import { extractGlobal } from '@pezkuwi/x-global';
|
|
export { packageInfo } from './packageInfo.js';
|
|
export const crypto = /*#__PURE__*/ extractGlobal('crypto', nodeCrypto.webcrypto);
|
|
export function getRandomValues(output) {
|
|
return crypto.getRandomValues(output);
|
|
}
|