update README.md

This commit is contained in:
Mark Vayngrib
2016-01-23 10:51:33 -05:00
parent e8c0f475ad
commit 7baa1745a4
+7
View File
@@ -6,6 +6,13 @@ Note: only the asynchronous API is supported, due to the limitations of having t
```js
var randomBytes = require('react-native-randombytes')
// synchronous API
// uses SJCL
var rand = randomBytes(4)
// asynchronous API
// uses iOS-side SecRandomCopyBytes
randomBytes(4, (err, bytes) => {
console.log(bytes.toString('hex'))
})