diff options
Diffstat (limited to 'storage.cpp')
-rw-r--r-- | storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage.cpp b/storage.cpp index e7e9248..a7d5a36 100644 --- a/storage.cpp +++ b/storage.cpp @@ -186,7 +186,7 @@ std::string Storage::generate_id() for (int i = 0; i < 6; i++) { char c{static_cast<char>('0' + uniform_dist(e1))}; if (c > '9') - c = c - '9' + 'a'; + c = c - '9' - 1 + 'a'; result.push_back(c); } |