Changeset 40968 in webkit for trunk/JavaScriptCore/wtf/RandomNumberSeed.h
- Timestamp:
- Feb 13, 2009, 1:18:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/RandomNumberSeed.h
r39558 r40968 58 58 } 59 59 60 inline void initializeWeakRandomNumberGenerator() 61 { 62 #if COMPILER(MSVC) && defined(_CRT_RAND_S) 63 // We need to initialise windows rand() explicitly for Math.random 64 unsigned seed = 0; 65 rand_s(&seed); 66 srand(seed); 67 #endif 68 } 60 69 } 61 70
Note:
See TracChangeset
for help on using the changeset viewer.