diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-13 22:42:49 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-17 12:40:58 +0000 |
commit | df466d79cb126667cc9d5c108367bfa4f5ce76c8 (patch) | |
tree | 5aa3ff1daa1a8ebda70b1ad51063e45355807443 /basic/inc | |
parent | 9c3e819f066acaf9f5a416630fa7dd83fdc2539d (diff) |
fdo#70474: Random number generation weak with Rnd in BASIC
Just reuse the rng functionality. This improves the randomness.
Initialize seed with system time if no argument for RANDOMIZE is given. As the help text
states: "If Number is omitted, the generator uses the current value of the system timer".
Change-Id: I5fa46e8344b2402dff66a8db2449d43e2ca27d6d
Reviewed-on: https://gerrit.libreoffice.org/9349
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'basic/inc')
-rw-r--r-- | basic/inc/pch/precompiled_sb.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/basic/inc/pch/precompiled_sb.hxx b/basic/inc/pch/precompiled_sb.hxx index 4c0ba1bb6e17..a7cd16b55efa 100644 --- a/basic/inc/pch/precompiled_sb.hxx +++ b/basic/inc/pch/precompiled_sb.hxx @@ -29,6 +29,7 @@ #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/util/DateTime.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/random.hxx> #include <comphelper/string.hxx> #include <cstddef> #include <ctype.h> |