mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
This commit is contained in:
parent
b4a1f08580
commit
37ddf246b4
@ -56,7 +56,8 @@ function getTotalCounts(array) {
|
||||
}
|
||||
|
||||
function randomBetween(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
const secureRandom = crypto.getRandomValues(new Uint32Array(1))[0] * Math.pow(2, -32);
|
||||
return Math.floor(secureRandom * (max - min + 1) + min);
|
||||
}
|
||||
|
||||
function generateMountBlock(path, counts) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user