diff options
Diffstat (limited to 'sal/rtl/random.cxx')
-rw-r--r-- | sal/rtl/random.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index 1046b7000069..158e8fff3cc5 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -234,12 +234,12 @@ static void readPool ( rtlRandomPool SAL_CALL rtl_random_createPool() SAL_THROW_EXTERN_C() { RandomPool_Impl *pImpl = nullptr; - char sanity[4]; /* try to get system random number, if it fail fall back on own pool */ pImpl = static_cast< RandomPool_Impl* >(rtl_allocateZeroMemory(sizeof(RandomPool_Impl))); if (pImpl) { + char sanity[4]; if (!osl_get_system_random_data(sanity, 4)) { if (!initPool(pImpl)) |