diff --git a/src/chacha.js b/src/chacha.js --- a/src/chacha.js +++ b/src/chacha.js @@ -8,7 +8,7 @@ function lrot(x,shift){ function createNonce(){ let nonce=new Uint8Array(12); window.crypto.getRandomValues(nonce); - return nonce; + return Array.from(nonce); } /**