Changeset 73177 in webkit


Ignore:
Timestamp:
Dec 2, 2010 11:57:36 AM (13 years ago)
Author:
Patrick Gansterer
Message:

2010-12-02 Patrick Gansterer <Patrick Gansterer>

Reviewed by Andreas Kling.

[WINCE] Use GetTickCount() for srand()
https://bugs.webkit.org/show_bug.cgi?id=50338

time() is not a native function on WinCE, so use GetTickCount() instead.

  • wtf/RandomNumberSeed.h: (WTF::initializeRandomNumberGenerator):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r73126 r73177  
     12010-12-02  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [WINCE] Use GetTickCount() for srand()
     6        https://bugs.webkit.org/show_bug.cgi?id=50338
     7
     8        time() is not a native function on WinCE, so use GetTickCount() instead.
     9
     10        * wtf/RandomNumberSeed.h:
     11        (WTF::initializeRandomNumberGenerator):
     12
    1132010-12-02  Norbert Leser  <norbert.leser@nokia.com>
    214
  • trunk/JavaScriptCore/wtf/RandomNumberSeed.h

    r71226 r73177  
    5454#elif OS(WINCE)
    5555    // initialize rand()
    56     srand(static_cast<unsigned>(time(0)));
     56    srand(GetTickCount());
    5757
    5858    // use rand() to initialize the real RNG
Note: See TracChangeset for help on using the changeset viewer.