>  One thing I have noticed is that RAND_MAX is defined 
> differently on Windows (MSVC) and Linux. This would affect a lot of 
> things in RandomSync I believe, and might explain some bugs.
>
> kyle
>   

Method double RandomSync::GetDouble() must return a number between 0.0 
and 1.0, and this method uses RAND_MAX so if RAND_MAX is different on 
Linux and on Windows, the result should be that it can return a number 
outside of this limit!!!

As you can see in RandomSync, in fact all public methods Get* depend 
from RAND_MAX !!

Thanks a lot for have seen that bug !!!

Matt (gentildemon)

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à