bip39-light
Advanced tools
Comparing version 1.0.4 to 1.0.5
var randomBytes | ||
if (typeof window !== 'undefined' && window.crypto) { | ||
randomBytes = window.crypto.getRandomValues | ||
randomBytes = function (len) { | ||
var array = new Uint32Array(len); | ||
return Buffer.from(window.crypto.getRandomValues(array)) | ||
} | ||
} else { | ||
@@ -5,0 +8,0 @@ randomBytes = require('crypto').randomBytes |
{ | ||
"name": "bip39-light", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Bitcoin BIP39: Mnemonic code for generating deterministic keys, a lightweight fork", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
73994
4464