diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/random.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index 224a345a3094..836d30889b80 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -294,11 +294,8 @@ rtlRandomError SAL_CALL rtl_random_getBytes ( if (pImpl->m_hDigest || !osl_get_system_random_data(static_cast< char* >(Buffer), Bytes)) { - if (!pImpl->m_hDigest) - { - if (!initPool (pImpl)) - return rtl_Random_E_Unknown; - } + if (!pImpl->m_hDigest && !initPool(pImpl)) + return rtl_Random_E_Unknown; readPool(pImpl, pBuffer, Bytes); } return rtl_Random_E_None; |