summaryrefslogtreecommitdiffstats
path: root/BrowserSource/Proxy/Utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'BrowserSource/Proxy/Utils.h')
-rw-r--r--BrowserSource/Proxy/Utils.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/BrowserSource/Proxy/Utils.h b/BrowserSource/Proxy/Utils.h
deleted file mode 100644
index af5bc65..0000000
--- a/BrowserSource/Proxy/Utils.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#include <random>
-#include <string>
-#include <array>
-
-std::string RandomString(std::size_t length) {
- static const std::array<char, 62> characters{
- {
- '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
- 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
- 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
- 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
- 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
- 'y', 'z'
- }
- };
-
- std::random_device rd;
- std::default_random_engine generator(rd());
- std::uniform_int_distribution<> distribution(0, characters.size() - 1);
-
- std::string random_string;
-
- for (std::size_t i = 0; i < length; ++i) {
- random_string += characters[distribution(generator)];
- }
-
- return random_string;
-}