diff options
Diffstat (limited to 'oox/source/crypto/Standard2007Engine.cxx')
-rw-r--r-- | oox/source/crypto/Standard2007Engine.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/crypto/Standard2007Engine.cxx b/oox/source/crypto/Standard2007Engine.cxx index b588fc5c8f..9fe18ad17e 100644 --- a/oox/source/crypto/Standard2007Engine.cxx +++ b/oox/source/crypto/Standard2007Engine.cxx @@ -28,7 +28,10 @@ namespace void lclRandomGenerateValues(sal_uInt8* aArray, sal_uInt32 aSize) { rtlRandomPool aRandomPool = rtl_random_createPool(); - rtl_random_getBytes(aRandomPool, aArray, aSize); + if (rtl_random_getBytes(aRandomPool, aArray, aSize) != rtl_Random_E_None) + { + throw css::uno::RuntimeException("rtl_random_getBytes failed"); + } rtl_random_destroyPool(aRandomPool); } |