We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db4d57 commit 7de8637Copy full SHA for 7de8637
src/api/users.ts
@@ -37,6 +37,6 @@ function generateRandomSHA256Hash(): string {
37
// should we be using crypto.randomBytes instead of crypto.pseudoRandomBytes?
38
return crypto
39
.createHash("sha256")
40
- .update(crypto.pseudoRandomBytes(32))
+ .update(crypto.randomBytes(32))
41
.digest("hex");
42
}
0 commit comments