Rename local variable hiding global one with the same name

As found by LGTM.com.

Change-Id: Ic4c38c02529e7cc7eb7c79c3936b7d5f030fd84f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Dimitrios Apostolou 2020-07-04 02:47:36 +02:00
parent 3736ebf7c8
commit a5e6e0dd2e

View File

@ -1249,7 +1249,7 @@ static inline QRandEngine *randTLS()
Thread-safe version of the standard C++ \c srand() function.
Sets the argument \a seed to be used to generate a new random number sequence of
Sets the argument \a newSeed to be used to generate a new random number sequence of
pseudo random integers to be returned by qrand().
The sequence of random numbers generated is deterministic per thread. For example,
@ -1261,13 +1261,13 @@ static inline QRandEngine *randTLS()
\sa qrand(), QRandomGenerator
*/
void qsrand(uint seed)
void qsrand(uint newSeed)
{
auto prng = randTLS();
if (prng)
prng->seed(seed);
prng->seed(newSeed);
else
srand(seed);
srand(newSeed);
}
/*!