From: Aditya Mandaleeka Date: Mon, 9 Nov 2015 23:32:41 +0000 (-0800) Subject: Remove InternalRand. X-Git-Tag: accepted/tizen/base/20180629.140029~6189^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1cae46879e4cb5c9b0fadc79b1c07dd85841f27;p=platform%2Fupstream%2Fcoreclr.git Remove InternalRand. --- diff --git a/src/pal/src/cruntime/misc.cpp b/src/pal/src/cruntime/misc.cpp index e46274e..9910d7e 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);