jirapat ton
0
Q:

crypto npm random bytes

// Asynchronous
const crypto = require('crypto');
crypto.randomBytes(256, (err, buf) => {
  if (err) throw err;
  console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
});
0

Tags

New to Communities?

Join the community