From 19277d02fb996058e896725bae7500f356f08af0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 21 Aug 2013 14:18:40 +0200 Subject: osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier() Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44 --- sal/rtl/random.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sal/rtl/random.cxx') diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index 87c5bfc42e30..e8e77096288d 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -128,7 +129,7 @@ static sal_Bool __rtl_random_initPool (RandomPool_Impl *pImpl) __rtl_random_seedPool (pImpl, (sal_uInt8*)&rd, sizeof(rd)); */ - id = osl_getThreadIdentifier (NULL); + id = osl::Thread::getCurrentIdentifier(); id = RTL_RANDOM_RNG_2(RTL_RANDOM_RNG_1(id)); __rtl_random_seedPool (pImpl, (sal_uInt8*)&id, sizeof(id)); -- cgit