Commit 291c28e4 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

jamiaccount: ensure no precision loss when computing time slot

Change-Id: I710fde159c4ba52eade7037e620c7d7184c49e15
parent c2220f93
......@@ -1028,7 +1028,7 @@ JamiAccount::computeKeys(const std::string& password, const std::string& pin, bo
// Compute time seed
auto now = std::chrono::duration_cast<std::chrono::seconds>(clock::now().time_since_epoch());
auto tseed = now.count() / std::chrono::duration_cast<std::chrono::seconds>(EXPORT_KEY_RENEWAL_TIME).count();
auto tseed = now.count() / std::chrono::seconds(EXPORT_KEY_RENEWAL_TIME).count();
if (previous)
std::stringstream ss;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment