Minor adjustment in CAtomicFile.

This commit is contained in:
Mathew Sutcliffe
2016-10-30 23:41:34 +00:00
committed by Klaus Basan
parent a1bea9703d
commit f709d959d0

View File

@@ -111,7 +111,7 @@ namespace BlackMisc
QString CAtomicFile::randomSuffix()
{
constexpr auto max = 2176782335;
return QString::number(std::uniform_int_distribution<std::decay_t<decltype(max)>>(0, max)(Private::defaultRandomGenerator()), 36);
return QString("%1").arg(std::uniform_int_distribution<std::decay_t<decltype(max)>>(0, max)(Private::defaultRandomGenerator()), 6, 36, QChar('0'));
}
#if defined(Q_OS_POSIX)