QNX 6.3.0 gcc 3.3.1

git-svn-id: svn://db.shs.com.ru/pip@212 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2016-07-26 13:08:49 +00:00
parent 4c30988c77
commit d951871dec
4 changed files with 46 additions and 22 deletions

View File

@@ -170,7 +170,13 @@ inline PIByteArray & operator >>(PIByteArray & s, complexld & v) {ldouble t; s >
void randomize();
// [-1 ; 1]
inline double randomd() {return (double)random() / RAND_MAX * 2. - 1.;}
inline double randomd() {return (double)
#ifdef QNX
rand()
#else
random()
#endif
/ RAND_MAX * 2. - 1.;}
// [-1 ; 1] normal
double randomn(double dv = 0., double sv = 1.);