Skip to content

Commit 7de8637

Browse files
committed
crypto fix
1 parent 4db4d57 commit 7de8637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ function generateRandomSHA256Hash(): string {
3737
// should we be using crypto.randomBytes instead of crypto.pseudoRandomBytes?
3838
return crypto
3939
.createHash("sha256")
40-
.update(crypto.pseudoRandomBytes(32))
40+
.update(crypto.randomBytes(32))
4141
.digest("hex");
4242
}

0 commit comments

Comments
 (0)