Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.1.0 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",

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