|
From: <sv...@va...> - 2014-08-11 15:21:51
|
Author: florian
Date: Mon Aug 11 15:21:44 2014
New Revision: 14260
Log:
Give static variable function scope.
Modified:
trunk/coregrind/m_libcbase.c
Modified: trunk/coregrind/m_libcbase.c
==============================================================================
--- trunk/coregrind/m_libcbase.c (original)
+++ trunk/coregrind/m_libcbase.c Mon Aug 11 15:21:44 2014
@@ -935,10 +935,10 @@
// is NULL, it uses its own seed, which starts at zero. If pSeed is
// non-NULL, it uses and updates whatever pSeed points at.
-static UInt seed = 0;
-
UInt VG_(random)( /*MOD*/UInt* pSeed )
{
+ static UInt seed = 0;
+
if (pSeed == NULL)
pSeed = &seed;
|