random-path
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3900
66