PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/isomorphic-webcrypto/node_modules/expo-random/src
Просмотр файла: ExpoRandom.web.ts
export default {
getRandomBytes(length: number): Uint8Array {
const array = new Uint8Array(length);
// @ts-ignore
return (window.crypto ?? window.msCrypto).getRandomValues(array);
},
async getRandomBytesAsync(length: number): Promise<Uint8Array> {
const array = new Uint8Array(length);
// @ts-ignore
return (window.crypto ?? window.msCrypto).getRandomValues(array);
},
};
Выполнить команду
Для локальной разработки. Не используйте в интернете!