Fixed stuff

This commit is contained in:
jude
2023-04-13 13:32:29 +01:00
parent 1d9ab1d601
commit b7150d6547
5 changed files with 69 additions and 35 deletions

View File

@ -1,4 +1,8 @@
// Fisher-Yates shuffle
/**
* CSPRNG Fisher-Yates shuffle.
*
* Only works on lists up to 255 elements.
*/
function cryptoShuffle(l) {
for (let i = l.length - 1; i > 0; i--) {
let value = new Uint8Array([0]);