@rahulv.dev/rng
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -16,3 +16,6 @@ "use strict"; | ||
generateSecureRandomLong(minValue, maxValue) { | ||
if (minValue >= maxValue) { | ||
if (minValue == maxValue) { | ||
return minValue; | ||
} | ||
if (minValue > maxValue) { | ||
throw new Error("minValue must be less than maxValue"); | ||
@@ -19,0 +22,0 @@ } |
{ | ||
"name": "@rahulv.dev/rng", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A secure random number generator.", | ||
@@ -5,0 +5,0 @@ "main": "dist/rng.node.js", |
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
10211
114