mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Minor adjustment in CAtomicFile.
This commit is contained in:
committed by
Klaus Basan
parent
a1bea9703d
commit
f709d959d0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user