mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
fix: upgrade deno_ast to 0.23 (#17269)
Closes #17172 Closes #15669 Closes #8529
This commit is contained in:
parent
319f607476
commit
0ee64ad847
18 changed files with 145 additions and 116 deletions
|
@ -1069,7 +1069,7 @@
|
|||
if (shuffle !== null) {
|
||||
// http://en.wikipedia.org/wiki/Linear_congruential_generator
|
||||
// Use BigInt for everything because the random seed is u64.
|
||||
const nextInt = (function (state) {
|
||||
const nextInt = function (state) {
|
||||
const m = 0x80000000n;
|
||||
const a = 1103515245n;
|
||||
const c = 12345n;
|
||||
|
@ -1077,7 +1077,7 @@
|
|||
return function (max) {
|
||||
return state = ((a * state + c) % m) % BigInt(max);
|
||||
};
|
||||
}(BigInt(shuffle)));
|
||||
}(BigInt(shuffle));
|
||||
|
||||
for (let i = filtered.length - 1; i > 0; i--) {
|
||||
const j = nextInt(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue