Skip to content

Commit 561b17e

Browse files
authored
Fix buffer creation from Uint32Array
1 parent 874fa52 commit 561b17e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ export function isInsiders() {
8282
export function getNonce() {
8383
let array = new Uint32Array(16);
8484
array = crypto.getRandomValues(array);
85-
const buffer = Buffer.from(array);
85+
const buffer = Buffer.from(array.buffer);
8686
return buffer.toString('base64');
8787
}

0 commit comments

Comments
 (0)