How to use the react-native-randombytes function in react-native-randombytes

To help you get started, we’ve selected a few react-native-randombytes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github discourse / DiscourseMobile / js / utils / random_bytes_generator.ios.js View on Github external
return new Promise(resolve=>{
      randomBytes(size, (_, bytes) => {
        resolve(bytes.toString('hex'))
      })
    })
  }

react-native-randombytes

randomBytes for react-native

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Popular react-native-randombytes functions