Browse Source

Fix rand generator

import_zecw
adityapk00 5 years ago
parent
commit
72049da6e0
  1. 2
      src/connection.cpp

2
src/connection.cpp

@ -116,7 +116,7 @@ QString randomPassword() {
char* s = new char[passwordLength + 1];
for (int i = 0; i < passwordLength; ++i) {
s[i] = alphanum[rand() % (sizeof(alphanum) - 1)];
s[i] = alphanum[randombytes_uniform(sizeof(alphanum))];
}
s[passwordLength] = 0;

Loading…
Cancel
Save