UNPKG

mtproton

Version:

Telegram API JS (MTProto) client library for browser and nodejs

8 lines (6 loc) 159 B
function getRandomBytes(length) { const bytes = new Uint8Array(length); crypto.getRandomValues(bytes); return bytes; } module.exports = getRandomBytes;