diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-12-07 23:44:03 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-12-08 11:57:55 +0100 |
commit | c83b09ab19e72818f38266808e109efd0f1f64c0 (patch) | |
tree | 70cfcaa4dc128116677eae9d2c026ff6e7f518c1 /xmlsecurity | |
parent | d46dc8e547810208287aab77f0313f1971901464 (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 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/ciphercontext.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx index a3a29e20d6a0..d7d7d951adf4 100644 --- a/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx +++ b/xmlsecurity/source/xmlsec/nss/ciphercontext.cxx @@ -203,10 +203,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::finalizeCipherContextAndDis if ( nPaddingSize > 1 ) { - TimeValue aTime; - osl_getSystemTime( &aTime ); rtlRandomPool aRandomPool = rtl_random_createPool(); - rtl_random_addBytes( aRandomPool, &aTime, 8 ); rtl_random_getBytes( aRandomPool, m_aLastBlock.getArray() + nOldLastBlockLen, nPaddingSize - 1 ); rtl_random_destroyPool ( aRandomPool ); } |