summaryrefslogtreecommitdiffhomepage
path: root/storage.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-22 12:02:16 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-22 12:02:16 +0100
commit004db5e7e4e9ab6ac5b4730873c6b8f58da92930 (patch)
tree9b76e938558e24ad3a6778b2d725874a3dbe878b /storage.cpp
parent6889067f0e4104eaced27bd2e1c303e70e23ca85 (diff)
Storage bugfix, whiteboard xml implementation
Diffstat (limited to 'storage.cpp')
-rw-r--r--storage.cpp2
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);
}