summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/random.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx
index f4637131de45..48dc886b444f 100644
--- a/sal/rtl/random.cxx
+++ b/sal/rtl/random.cxx
@@ -333,7 +333,7 @@ rtlRandomError SAL_CALL rtl_random_getBytes (
if ((pImpl == NULL) || (pBuffer == NULL))
return rtl_Random_E_Argument;
- if(pImpl->m_hDigest || !osl_get_system_random_data((char*)Buffer, Bytes))
+ if(pImpl->m_hDigest || !osl_get_system_random_data(static_cast<char*>(Buffer), Bytes))
{
if(!pImpl->m_hDigest)
{