Changeset 2526 for trunk/src/lol/math/rand.h
- Timestamp:
- Feb 27, 2013, 8:15:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lol/math/rand.h
r2524 r2526 95 95 ret = (ret << 8) ^ std::rand(); 96 96 } 97 return static_cast<T>(ret & 0x7fffffffffffffffllu);97 return static_cast<T>(ret & (~(uint64_t)0 >> 1)); 98 98 } 99 99 default:
Note: See TracChangeset
for help on using the changeset viewer.