ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.106 by root, Sun May 2 11:23:51 2010 UTC vs.
Revision 1.107 by root, Sun May 2 14:46:56 2010 UTC

500 } 500 }
501 501
502 // return a number within the half-open interval [0..1[ 502 // return a number within the half-open interval [0..1[
503 double operator ()() 503 double operator ()()
504 { 504 {
505 return this->next () / 0x100000000; 505 return this->next () / (double)0x100000000;
506 } 506 }
507 507
508protected: 508protected:
509 uint32_t get_range (uint32_t r_max); 509 uint32_t get_range (uint32_t r_max);
510 int get_range (int r_min, int r_max); 510 int get_range (int r_min, int r_max);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines