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

base62-random

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base62-random - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0-1

6

index.js

@@ -60,3 +60,5 @@ 'use strict';

strIdx = 0
return str = crypto.randomBytes(BUFFER_SIZE).toString('base64').replace(/[\+\=\/]/g,'')
return str = crypto.randomBytes(BUFFER_SIZE)
.toString('base64')
.replace(/[+.=/]/g,'')
}

@@ -68,3 +70,3 @@

var tmp = Array(BUFFER_SIZE)
for (i=0; i<BUFFER_SIZE; i++){
for ( i=0; i<BUFFER_SIZE; i++){
// wastes some bits, some bit pushing should save the extra 4

@@ -71,0 +73,0 @@ tmp.push(chars[buf[i] % 62])

{
"name": "base62-random",
"version": "0.1.1",
"version": "0.2.0-1",
"description": "Fast base62 random",

@@ -5,0 +5,0 @@ "main": "index.js",

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