summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2024-05-03 14:17:27 +0100
committerMichael Meeks <michael.meeks@collabora.com>2024-05-07 09:51:13 +0200
commita2605a66fdb8ab18018f3a0f8e49043e73854986 (patch)
treee36c14196983a9c7575a5558c2ffa839bbf9d524 /desktop
parent72ea1005b987159a6a59f9379e63321e0b0dd44f (diff)
lok: reseed comphelper's random number generator on fork.
Also avoid std::random_device it doesn't work in a COOL kit process. Change-Id: Ie2d063611a73e734afd92d6fd779f34a2f316230 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167070 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index ce1ba38334f6..28ba524ad0eb 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -76,6 +76,7 @@
#include <rtl/uri.hxx>
#include <linguistic/misc.hxx>
#include <cppuhelper/bootstrap.hxx>
+#include <comphelper/random.hxx>
#include <comphelper/base64.hxx>
#include <comphelper/dispatchcommand.hxx>
#include <comphelper/lok.hxx>
@@ -7969,7 +7970,10 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
}
rtl::Bootstrap::set(u"UserInstallation"_ustr, url);
if (eStage == SECOND_INIT)
+ {
+ comphelper::rng::reseed();
utl::Bootstrap::reloadData();
+ }
}
OUString aAppPath;