summaryrefslogtreecommitdiffstats
path: root/sal/rtl/random.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 19:01:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:50 +0100
commitb70b4e644b5bb5356509505855418453dc621cfc (patch)
tree0a2441aa91947032d398b688f73553ff4d5a4afb /sal/rtl/random.cxx
parentSome more loplugin:cstylecast: rsc (diff)
downloadcore-b70b4e644b5bb5356509505855418453dc621cfc.tar.gz
core-b70b4e644b5bb5356509505855418453dc621cfc.zip
Some more loplugin:cstylecast: sal
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
Diffstat (limited to 'sal/rtl/random.cxx')
-rw-r--r--sal/rtl/random.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx
index 53cce865e822..851dbffb1dda 100644
--- a/sal/rtl/random.cxx
+++ b/sal/rtl/random.cxx
@@ -131,22 +131,22 @@ static bool __rtl_random_initPool (RandomPool_Impl *pImpl)
tid = osl::Thread::getCurrentIdentifier();
tid = RTL_RANDOM_RNG_2(RTL_RANDOM_RNG_1(tid));
- __rtl_random_seedPool (pImpl, (sal_uInt8*)&tid, sizeof(tid));
+ __rtl_random_seedPool (pImpl, reinterpret_cast<sal_uInt8*>(&tid), sizeof(tid));
osl_getSystemTime (&tv);
tv.Seconds = RTL_RANDOM_RNG_2(tv.Seconds);
tv.Nanosec = RTL_RANDOM_RNG_2(tv.Nanosec);
- __rtl_random_seedPool (pImpl, (sal_uInt8*)&tv, sizeof(tv));
+ __rtl_random_seedPool (pImpl, reinterpret_cast<sal_uInt8*>(&tv), sizeof(tv));
rd.m_nX = (sal_Int16)(((tid >> 1) << 1) + 1);
rd.m_nY = (sal_Int16)(((tv.Seconds >> 1) << 1) + 1);
rd.m_nZ = (sal_Int16)(((tv.Nanosec >> 1) << 1) + 1);
- __rtl_random_seedPool (pImpl, (sal_uInt8*)&rd, sizeof(rd));
+ __rtl_random_seedPool (pImpl, reinterpret_cast<sal_uInt8*>(&rd), sizeof(rd));
while (pImpl->m_nData < RTL_RANDOM_SIZE_POOL)
{
seed = __rtl_random_data (&rd);
- __rtl_random_seedPool (pImpl, (sal_uInt8*)&seed, sizeof(seed));
+ __rtl_random_seedPool (pImpl, reinterpret_cast<sal_uInt8*>(&seed), sizeof(seed));
}
return true;
}