Skip to content

Commit

Permalink
fix: generate random nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
rainforest-dev committed Sep 15, 2023
1 parent 11096ed commit 65d1a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hoogii",
"version": "1.0.11-dev.2",
"version": "1.0.12-dev.3",
"private": true,
"scripts": {
"dev": "vite --port 3000",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class Offer {
}

static getNonce = () => {
const nonceArr = new Uint8Array(256 / 8)
const nonceArr = crypto.getRandomValues(new Uint8Array(256 / 8))

return nonceArr
}
Expand Down

0 comments on commit 65d1a7a

Please sign in to comment.