Fixed stuff
This commit is contained in:
1 parent
1d9ab1d601
commit
b7150d6547
5 files changed
+69
-35
No files matched your search
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user