Hi
The random number generator used by JavaScriptCore's Math.random appears to
be broken on WinCE.

Opening the attached HTML file (see below) with QWebView on Win32 yields the
following expected results:

0.46855475660413504
0.7403535516932607
0.46208329405635595
0.7563301669433713
0.4393765367567539
0.529561928473413
0.48508203960955143
0.32263467088341713
0.47164275497198105
0.5664373589679599

However, the same file produces these results on my Windows Mobile testing
device, an HTC Touch Pro with WM 6.1 Professional:

0.0000146627428079249
0.000007852912118466726
0.000003412365970234532
0.000005945563542164578
0.000008821487596955002
0.000009521842195936436
0.000001087784960995819
0.0000039339065603938295
0.000009208917678193984
0.000007063150550878916

I suspect this issue is related to the following WebKit revision:
http://trac.webkit.org/changeset/40968

Regards
Pieter

PS. The attached HTML file was mangled by Gmail. So here it is again:
<html>
<body>
<script type="text/javascript">
for (var i = 0; i < 10; i++) {
  var num = Math.random();
  document.write("<p>", num, "</p>");
}
</script>
</body>
</html>
_______________________________________________
Qt-wince-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-wince-interest

Reply via email to