randomstring
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,5 @@ | ||
1.2.2 / Jan 22, 2022 | ||
================== | ||
* Fixed browser support | ||
1.2.1 / May 10, 2021 | ||
@@ -2,0 +6,0 @@ ================== |
"use strict"; | ||
var crypto = require('crypto'); | ||
var randomBytes = require('randombytes'); | ||
@@ -29,3 +28,3 @@ var Charset = require('./charset.js'); | ||
function getAsyncString(string, chars, length, maxByte, cb) { | ||
crypto.randomBytes(length, function(err, buf) { | ||
randomBytes(length, function(err, buf) { | ||
if (err) { | ||
@@ -32,0 +31,0 @@ // Since it is waiting for entropy, errors are legit and we shouldn't just keep retrying |
{ | ||
"name": "randomstring", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Elias Klughammer <elias@klughammer.com> (http://www.klughammer.com)", | ||
@@ -5,0 +5,0 @@ "description": "A module for generating random strings", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14987
285