Skip to content

Commit

Permalink
Merge pull request #675 from SashaXser/main
Browse files Browse the repository at this point in the history
Доработка #674
  • Loading branch information
ilyhalight authored Jun 22, 2024
2 parents 4f99380 + 7059714 commit b89e04a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/vot-cloudflare-min.user.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/vot-cloudflare.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2835,9 +2835,13 @@ const yandexProtobuf = {
var es5 = __webpack_require__("./node_modules/bowser/es5.js");
;// CONCATENATED MODULE: ./src/getUUID.js
function getUUID() {
return "xxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e, n) => {
return (e === "x" ? (16 * Math.random()) | 0 : (3 & n) | 8).toString(16);
});
const hexDigits = "0123456789ABCDEF";
let uuid = "";
for (let i = 0; i < 32; i++) {
const randomDigit = Math.floor(Math.random() * 16);
uuid += hexDigits[randomDigit];
}
return uuid;
}


Expand Down
2 changes: 1 addition & 1 deletion dist/vot-min.user.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2736,9 +2736,13 @@ const yandexProtobuf = {
var es5 = __webpack_require__("./node_modules/bowser/es5.js");
;// CONCATENATED MODULE: ./src/getUUID.js
function getUUID() {
return "xxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e, n) => {
return (e === "x" ? (16 * Math.random()) | 0 : (3 & n) | 8).toString(16);
});
const hexDigits = "0123456789ABCDEF";
let uuid = "";
for (let i = 0; i < 32; i++) {
const randomDigit = Math.floor(Math.random() * 16);
uuid += hexDigits[randomDigit];
}
return uuid;
}


Expand Down
10 changes: 7 additions & 3 deletions src/getUUID.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
function getUUID() {
return "xxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e, n) => {
return (e === "x" ? (16 * Math.random()) | 0 : (3 & n) | 8).toString(16);
});
const hexDigits = "0123456789ABCDEF";
let uuid = "";
for (let i = 0; i < 32; i++) {
const randomDigit = Math.floor(Math.random() * 16);
uuid += hexDigits[randomDigit];
}
return uuid;
}

export { getUUID };

0 comments on commit b89e04a

Please sign in to comment.