From e1cae46879e4cb5c9b0fadc79b1c07dd85841f27 Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Mon, 9 Nov 2015 15:32:41 -0800 Subject: Remove InternalRand. --- src/pal/src/cruntime/misc.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/pal') diff --git a/src/pal/src/cruntime/misc.cpp b/src/pal/src/cruntime/misc.cpp index e46274ead8..9910d7e687 100644 --- a/src/pal/src/cruntime/misc.cpp +++ b/src/pal/src/cruntime/misc.cpp @@ -47,27 +47,6 @@ CRITICAL_SECTION gcsEnvironment; using namespace CorUnix; -namespace CorUnix -{ - int InternalRand(CPalThread *pthrCurrent); - - /*++ - Function: - InternalRand - - Wrapper for rand. - --*/ - int - InternalRand( - CPalThread *pthrCurrent - ) - { - int nRet; - nRet = rand(); - return nRet; - } -} - /*++ Function: _gcvt_s @@ -271,7 +250,7 @@ PAL_rand(void) PERF_ENTRY(rand); ENTRY("rand(void)\n"); - ret = (InternalRand(InternalGetCurrentThread()) % (PAL_RAND_MAX + 1)); + ret = (rand() % (PAL_RAND_MAX + 1)); LOGEXIT("rand() returning %d\n", ret); PERF_EXIT(rand); -- cgit v1.2.3