UNPKG

mtproton

Version:

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

8 lines (5 loc) 158 B
const crypto = require('crypto'); function getRandomBytes(length) { return new Uint8Array(crypto.randomBytes(length)); } module.exports = getRandomBytes;