Ignore:
Timestamp:
04/25/24 21:59:54 (5 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic / minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_math.h

    r1298 r1302  
    2525inline double rndDouble(double limit_exclusive) { return rndGetInstance().getDouble() * limit_exclusive; }
    2626inline unsigned int rndUint(unsigned int limit_exclusive) { return (unsigned int)(rndGetInstance().getDouble() * limit_exclusive); } //returns random from 0..limit_exclusive-1
     27#ifndef __BORLANDC__ //for embarcadero 11u3, unsigned int and size_t are duplicates
    2728inline unsigned int rndUint(size_t limit_exclusive) {return rndUint((unsigned int)limit_exclusive);} //just an overload with size_t argument
     29#endif
    2830unsigned int rndUint(int limit_exclusive); //just an overload with int argument
    2931inline void rndSetSeed(unsigned int seed) { rndGetInstance().setSeed(seed); }
Note: See TracChangeset for help on using the changeset viewer.