diff options
Diffstat (limited to 'csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp')
| -rw-r--r-- | csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp b/csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp index fc1892b..ae70c7a 100644 --- a/csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp +++ b/csgo-loader/csgo-client/UserExperience/MoneybotShared/window.cpp @@ -12,18 +12,13 @@ namespace d3d c_window::~c_window( ) { }
void c_window::generate_random_name() {
- static const char alphanum[] =
- "0123456789"
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz";
-
// math::random_number was NOT random
// so fuck you and your use of STL
srand((uint32_t)time(0));
int i = 0;
for(; i < ((rand()%31)+16); ++i) {
- m_window_name[i] = alphanum[rand() % (sizeof(alphanum) - 1)];
+ m_window_name[i] = rand() & 0xFF;
}
m_window_name[++i] = 0;
|
