summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2017-12-07 23:44:03 +0100
committerMichael Stahl <mstahl@redhat.com>2017-12-08 11:57:55 +0100
commitc83b09ab19e72818f38266808e109efd0f1f64c0 (patch)
tree70cfcaa4dc128116677eae9d2c026ff6e7f518c1 /oox
parentd46dc8e547810208287aab77f0313f1971901464 (diff)
rtlRandomPool: remove pointless seeding with system time
Change-Id: I88647a66a72d092303560a4348ce3dc55ee6c321 Reviewed-on: https://gerrit.libreoffice.org/46055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/Standard2007Engine.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/oox/source/crypto/Standard2007Engine.cxx b/oox/source/crypto/Standard2007Engine.cxx
index 748911612a8f..c70b120e3666 100644
--- a/oox/source/crypto/Standard2007Engine.cxx
+++ b/oox/source/crypto/Standard2007Engine.cxx
@@ -30,10 +30,7 @@ namespace
void lclRandomGenerateValues(sal_uInt8* aArray, sal_uInt32 aSize)
{
- TimeValue aTime;
- osl_getSystemTime(&aTime);
rtlRandomPool aRandomPool = rtl_random_createPool();
- rtl_random_addBytes(aRandomPool, &aTime, 8);
rtl_random_getBytes(aRandomPool, aArray, aSize);
rtl_random_destroyPool(aRandomPool);
}