From 004db5e7e4e9ab6ac5b4730873c6b8f58da92930 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 22 Jan 2023 12:02:16 +0100 Subject: Storage bugfix, whiteboard xml implementation --- storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage.cpp') 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('0' + uniform_dist(e1))}; if (c > '9') - c = c - '9' + 'a'; + c = c - '9' - 1 + 'a'; result.push_back(c); } -- cgit v1.2.3