Skip to content

Commit a78f358

Browse files
authored
1 parent b2ed9b4 commit a78f358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reflex/.templates/web/utils/state.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export const generateUUID = () => {
5656
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
5757
let r = Math.random() * 16;
5858
if (d > 0) {
59-
r = (d + r) % 16 | 0;
59+
r = ((d + r) % 16) | 0;
6060
d = Math.floor(d / 16);
6161
} else {
62-
r = (d2 + r) % 16 | 0;
62+
r = ((d2 + r) % 16) | 0;
6363
d2 = Math.floor(d2 / 16);
6464
}
6565
return (c == "x" ? r : (r & 0x7) | 0x8).toString(16);

0 commit comments

Comments
 (0)