From 75514103e2f1cb7dc6b238d696b228e8f64a00ec Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 16 Feb 2020 13:39:52 +0100 Subject: [PATCH] Remove an outdated comment QRandomGenerator is now used to seed QHash, so the comment is wrong. Change-Id: Ic50fe95ea4169b55290cc758f5aebfbb0a3ea085 Reviewed-by: Thiago Macieira --- src/corelib/tools/qhash.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index 1e5af7e0ced..46f87f4902c 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -271,14 +271,6 @@ uint qHash(QLatin1String key, uint seed) noexcept /*! \internal - - Creates the QHash random seed from various sources. - In order of decreasing precedence: - - under Unix, it attemps to read from /dev/urandom; - - under Unix, it attemps to read from /dev/random; - - under Windows, it attempts to use rand_s; - - as a general fallback, the application's PID, a timestamp and the - address of a stack-local variable are used. */ static uint qt_create_qhash_seed() {