index.js
function randomBytesSync (size) {
  var err = null

  for (var i = 0; i < GENERATE_ATTEMPTS; i++) {
    try {
      return crypto.randomBytes(size)
    } catch (e) {
      err = e
    }
  }

  throw err
}
function randomBytesSync (size) {
  var err = null

  for (var i = 0; i < GENERATE_ATTEMPTS; i++) {
    try {
      return crypto.randomBytes(size)
    } catch (e) {
      err = e
    }
  }

  throw err
}
function randomBytesSync ( size ) { var err = null for ( var i = 0 ; i < GENERATE_ATTEMPTS ; i ++ ) { try { return crypto . randomBytes ( size ) } catch ( e ) { err = e } } throw err }
Generates strong pseudo-random bytes sync.

@param {number} size
@return {Buffer}
@public
Generates strong pseudo - random bytes sync .