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 b2ed9b4 commit a78f358Copy full SHA for a78f358
reflex/.templates/web/utils/state.js
@@ -56,10 +56,10 @@ export const generateUUID = () => {
56
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
57
let r = Math.random() * 16;
58
if (d > 0) {
59
- r = (d + r) % 16 | 0;
+ r = ((d + r) % 16) | 0;
60
d = Math.floor(d / 16);
61
} else {
62
- r = (d2 + r) % 16 | 0;
+ r = ((d2 + r) % 16) | 0;
63
d2 = Math.floor(d2 / 16);
64
}
65
return (c == "x" ? r : (r & 0x7) | 0x8).toString(16);
0 commit comments