Changeset 40932 in webkit for trunk/JavaScriptCore/wtf
- Timestamp:
- Feb 12, 2009, 1:56:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/RandomNumber.cpp
r39553 r40932 52 52 #if COMPILER(MSVC) && defined(_CRT_RAND_S) 53 53 rand_s(&part1); 54 rand_s(&part2);55 54 fullRandom = part1; 56 fullRandom <<= 32;57 fullRandom |= part2;58 55 #elif PLATFORM(DARWIN) 59 part1 = arc4random(); 60 part2 = arc4random(); 61 fullRandom = part1; 62 fullRandom <<= 32; 63 fullRandom |= part2; 56 fullRandom = arc4random(); 64 57 #elif PLATFORM(UNIX) 65 58 part1 = random() & (RAND_MAX - 1);
Note:
See TracChangeset
for help on using the changeset viewer.