[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

paroga at webkit.org paroga at webkit.org
Wed Dec 22 17:55:33 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 2c9541c977ad787242d444cc1fd06eb860cedec6
Author: paroga at webkit.org <paroga at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Dec 2 19:57:36 2010 +0000

    2010-12-02  Patrick Gansterer  <paroga at webkit.org>
    
            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):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73177 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 3decdfd..3a11791 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-12-02  Patrick Gansterer  <paroga at webkit.org>
+
+        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):
+
 2010-12-02  Norbert Leser  <norbert.leser at nokia.com>
 
         Reviewed by Laszlo Gombos.
diff --git a/JavaScriptCore/wtf/RandomNumberSeed.h b/JavaScriptCore/wtf/RandomNumberSeed.h
index b53b506..9ea7c71 100644
--- a/JavaScriptCore/wtf/RandomNumberSeed.h
+++ b/JavaScriptCore/wtf/RandomNumberSeed.h
@@ -53,7 +53,7 @@ inline void initializeRandomNumberGenerator()
     // On Darwin we use arc4random which initialises itself.
 #elif OS(WINCE)
     // initialize rand()
-    srand(static_cast<unsigned>(time(0)));
+    srand(GetTickCount());
 
     // use rand() to initialize the real RNG
     unsigned long initializationBuffer[4];

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list