[Qt-interest] QML Math.random()

Kent Hansen kent.hansen at nokia.com
Fri Oct 22 09:09:09 CEST 2010


Hi,

On 22. okt. 2010 03:49, ext Colin Kern wrote:
> Hi,
>
> I'm using Math.random() in a javascript function from QML, and it's
> generating the same sequence of numbers each time.  Everything I can
> find online says that javascript seeds the random number generator
> with the current time. Does Qt's implementation require it to be
> seeded differently?
>    

This is fixed for 4.7.2 (http://bugreports.qt.nokia.com/browse/QTBUG-13440)

Regards,
Kent



More information about the Qt-interest-old mailing list