Changeset 45865 in webkit for trunk/JavaScriptCore/wtf/RandomNumber.cpp
- Timestamp:
- Jul 14, 2009, 1:21:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/RandomNumber.cpp
r40968 r45865 1 1 /* 2 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)3 * (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) 4 4 * 5 5 * Redistribution and use in source and binary forms, with or without … … 34 34 #include <stdint.h> 35 35 #include <stdlib.h> 36 37 #if PLATFORM(WINCE) 38 extern "C" { 39 #include "wince/mt19937ar.c" 40 } 41 #endif 36 42 37 43 namespace WTF { … … 75 81 fullRandom &= (1LL << 53) - 1; 76 82 return static_cast<double>(fullRandom)/static_cast<double>(1LL << 53); 83 #elif PLATFORM(WINCE) 84 return genrand_res53(); 77 85 #else 78 86 uint32_t part1 = rand() & (RAND_MAX - 1);
Note:
See TracChangeset
for help on using the changeset viewer.