qt5base-lts/tests/auto/corelib/tools/qhashseed
Thiago Macieira 0077eac4e4 QHash: double the size of the stored seed
There's now another half of the seed which will be used by the hashers.
This is not stored in QHash, so it is never changed for the lifetime of
the application (not even when QHashSeed::setDeterministicGlobalSeed()
is called). However, we will not use it when we're in deterministic
mode.

This commit uses the compiler thread-safe statics to implement the
initialization of more than one atomic word, thus freeing us from having
to have a reserved value. As a bonus, the QT_HASH_SEED warning will only
be printed once.

Change-Id: Id2983978ad544ff79911fffd16723f1673f9a5b4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-10-26 11:38:56 -07:00
..
CMakeLists.txt Introduce QHashSeed and switch to size_t seeds 2021-05-23 12:08:42 -07:00
tst_qhashseed_helper.cpp Introduce QHashSeed and switch to size_t seeds 2021-05-23 12:08:42 -07:00
tst_qhashseed.cpp QHash: double the size of the stored seed 2021-10-26 11:38:56 -07:00