Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

randomstring

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomstring - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

1.2.2 / Jan 22, 2022
==================
* Fixed browser support
1.2.1 / May 10, 2021

@@ -2,0 +6,0 @@ ==================

3

lib/randomstring.js
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc