qGlobalQHashSeed: initialize the seed before returning it

If you had never used QHash before, this function returned -1. That's
not useful if you're trying to implement your own QHash that uses Qt's
global seed.

Change-Id: Ib0e40a7a3ebc44329f23fffd14b2e875b970a55c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Thiago Macieira 2017-04-06 13:20:18 -07:00
parent 92c61b11c1
commit d674d227f7
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ static void qt_initialize_qhash_seed()
*/
int qGlobalQHashSeed()
{
qt_initialize_qhash_seed();
return qt_qhash_seed.load();
}