diff options
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 4c6c87779967..3ccc46e994c7 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3528,7 +3528,7 @@ RTLFUNC(Randomize) { nSeed = (int)time(NULL); } - comphelper::rng::seed( nSeed ); + comphelper::rng::reseed(nSeed); } RTLFUNC(Rnd) @@ -3542,7 +3542,7 @@ RTLFUNC(Rnd) } else { - rPar.Get(0)->PutDouble( comphelper::rng::uniform() ); + rPar.Get(0)->PutDouble(comphelper::rng::uniform_real_distribution()); } } |