You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-randombytes

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-randombytes - npm Package Compare versions

Comparing version

to
2.0.1

1

index.js

@@ -43,3 +43,2 @@ if (typeof Buffer === 'undefined') {

let randomBytes = sjcl.random.randomWords(wordCount, 10)
console.log(randomBytes)
let hexString = sjcl.codec.hex.fromBits(randomBytes)

@@ -46,0 +45,0 @@ hexString = hexString.substr(0, size * 2)

2

package.json
{
"name": "react-native-randombytes",
"version": "2.0.0",
"version": "2.0.1",
"description": "randomBytes for react-native",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,4 +23,12 @@ # react-native-randombytes

### `iOS`
### Automatic - Android / iOS (recommended)
```bash
rnpm link
```
### Manual
#### `iOS`
* Drag RNRandomBytes.xcodeproj from node_modules/react-native-randombytes into your XCode project.

@@ -33,3 +41,3 @@

### `Android`
#### `Android`

@@ -78,3 +86,3 @@ * Update Gradle Settings

.addPackage(new MainReactPackage())
.addPackage(new RandomBytesPackage()) // register react iconify package here
.addPackage(new RandomBytesPackage()) // register package here
.setUseDeveloperSupport(BuildConfig.DEBUG)

@@ -81,0 +89,0 @@ .setInitialLifecycleState(LifecycleState.RESUMED)