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 45c7c6d commit dff79d2Copy full SHA for dff79d2
Common/Cpp/Options/RandomCodeOption.cpp
@@ -51,7 +51,7 @@ std::string RaidCodeOption::get_code() const{
51
if (m_random_digits == 0){
52
std::string qstr = sanitize_code(8, m_code);
53
for (int c = 0; c < 8; c++){
54
- code[c] = qstr[c] - '0';
+ code[c] = qstr[c];
55
}
56
return code;
57
@@ -61,7 +61,7 @@ std::string RaidCodeOption::get_code() const{
61
do{
62
x = rand() & 0x0f;
63
}while (x >= 10);
64
- code[c] = x;
+ code[c] = x + '0';
65
66
for (size_t c = m_random_digits; c < m_digits; c++){
67
code[c] = code[c - 1];
0 commit comments