diff options
Diffstat (limited to 'sal/rtl/random.cxx')
-rw-r--r-- | sal/rtl/random.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index c9cc0f841ea9..418358b22e22 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -46,6 +46,8 @@ if ((z) < 0) (z) += 30307; \ } +namespace { + struct RandomData_Impl { sal_Int16 m_nX; @@ -53,12 +55,16 @@ struct RandomData_Impl sal_Int16 m_nZ; }; +} + static double data (RandomData_Impl *pImpl); #define RTL_RANDOM_DIGEST rtl_Digest_AlgorithmMD5 #define RTL_RANDOM_SIZE_DIGEST RTL_DIGEST_LENGTH_MD5 #define RTL_RANDOM_SIZE_POOL 1023 +namespace { + struct RandomPool_Impl { rtlDigest m_hDigest; @@ -69,6 +75,8 @@ struct RandomPool_Impl sal_uInt32 m_nCount; }; +} + static bool initPool(RandomPool_Impl *pImpl); static void seedPool( |