2012. december 12., szerda

Why don't use qrand() in a cross-platform Qt project...

I noticed in my project that the qrand() does not work (as expected) in the MinGW Qt, it provides 16 bit numbers between 0 and 32767. D'oh! It is a better choice to use the random module from boost.

Nincsenek megjegyzések: