diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-07-27 09:04:39 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-07-31 13:36:53 +0000 |
commit | 4286b2dcd9f0e43d7f57386bfa53ae63d48ae573 (patch) | |
tree | 28ffa4feb7ea681d8dee028aa2353551bf153d7a /src/corelib/global | |
parent | 818ab021f5fbeeddaed001efd8716907e735bd71 (diff) |
Fix non-existing QRandomGenerator::generate32() function in docs
The function does not exist. QRandomGenerator::generate() is the equivalent
function
Change-Id: I5d65f2913fc5a9e60004d206733993254885a5e6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qrandom.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp index ebf9864b15..66deac2a29 100644 --- a/src/corelib/global/qrandom.cpp +++ b/src/corelib/global/qrandom.cpp @@ -527,7 +527,7 @@ inline QRandomGenerator::SystemGenerator &QRandomGenerator::SystemGenerator::sel \code QRandomGenerator prng1(1234), prng2(1234); - Q_ASSERT(prng1.generate32() == prng2.generate32()); + Q_ASSERT(prng1.generate() == prng2.generate()); Q_ASSERT(prng1.generate64() == prng2.generate64()); \endcode @@ -553,8 +553,8 @@ inline QRandomGenerator::SystemGenerator &QRandomGenerator::SystemGenerator::sel be easily used, as in the following example: \code - int x = QRandomGenerator::global()->generate32(); - int y = QRandomGenerator::global()->generate32(); + int x = QRandomGenerator::global()->generate(); + int y = QRandomGenerator::global()->generate(); int w = QRandomGenerator::global()->bounded(16384); int h = QRandomGenerator::global()->bounded(16384); \endcode |