🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rndm

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rndm - npm Package Compare versions

Comparing version

to
1.1.1

4

index.js

@@ -16,6 +16,6 @@

function create(chars) {
assert(typeof chars === 'string')
assert(typeof chars === 'string', 'the list of characters must be a string!')
var length = Buffer.byteLength(chars)
return function rndm(len) {
assert(typeof len === 'number' && len >= 0)
assert(typeof len === 'number' && len >= 0, 'the length of the random string must be a number!')
var salt = ''

@@ -22,0 +22,0 @@ for (var i = 0; i < len; i++) salt += chars[Math.floor(length * Math.random())]

{
"name": "rndm",
"description": "random string generator",
"version": "1.1.0",
"version": "1.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Jonathan Ong",