Allow QHash randomization to be disabled by environment variable
authoraavit <qt_aavit@ovi.com>
Tue, 22 May 2012 08:59:17 +0000 (10:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 12:21:47 +0000 (14:21 +0200)
commitb5a11a7be5ca30405d4bb7125fe56c121bf0acf8
tree4bc4ad2804408aabc917f7c2242c415c49c8017f
parentf604fd8ff482e03353283f90f9089e64c036a2dc
Allow QHash randomization to be disabled by environment variable

The new randomization of QHash is enabled by default. There may be cases
where you need deterministic behavior, e.g. for debugging or regression
testing. This patch disables randomization if QT_HASH_SEED is defined.

Change-Id: Idfad55ea7aba830add0a36334f0f763c62fdce13
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
src/corelib/tools/qhash.cpp