Changeset 31560 in webkit for trunk/JavaScriptCore/kjs/math_object.cpp
- Timestamp:
- Apr 1, 2008, 11:38:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/math_object.cpp
r29541 r31560 207 207 } 208 208 209 static bool didInitRandom;210 211 209 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&) 212 210 { 211 #if !USE(MULTIPLE_THREADS) 212 static bool didInitRandom; 213 213 if (!didInitRandom) { 214 214 wtf_random_init(); 215 215 didInitRandom = true; 216 216 } 217 #endif 218 217 219 return jsNumber(wtf_random()); 218 220 }
Note:
See TracChangeset
for help on using the changeset viewer.