react-native-randombytes
Advanced tools
Comparing version
@@ -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) |
{ | ||
"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) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
57653
0.07%94
9.3%0
-100%97
-1.02%