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

random-path

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-path - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

index.js

@@ -26,6 +26,8 @@ var path = require('path')

var invocations = 0
var localRandom = String(Math.random())
function randomPath (directory, template) {
validateTemplate(template)
var hash = murmur32(String(__filename) + String(process.pid) + String(++invocations))
var hash = murmur32(localRandom + String(process.pid) + String(++invocations))
var noise = encodeBase32(hash, 'Crockford')

@@ -32,0 +34,0 @@

{
"name": "random-path",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "LinusU/node-random-path",

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