UNPKG

@mt-proto/ncore

Version:

Telegram API JS (MTProto) client library for Node.js and browser

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