1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -8,24 +8,29 @@ namespace myrand
class MyRand
{
public:
explicit MyRand(int min, int max);
~MyRand() { }
explicit MyRand(int min, int max);
~MyRand() { }
int generate()
{ return (fMin + (int)((double)(fMax - fMin + 1) * (rand_r(&fSeed) / (RAND_MAX + 1.0)))); }
int generate()
{
return (fMin + (int)((double)(fMax - fMin + 1) * (rand_r(&fSeed) / (RAND_MAX + 1.0))));
}
int operator()() { return generate(); }
int operator()()
{
return generate();
}
protected:
private:
//defaults okay (I guess)
//MyRand(const MyRand& rhs);
//MyRand& operator=(const MyRand& rhs);
//defaults okay (I guess)
//MyRand(const MyRand& rhs);
//MyRand& operator=(const MyRand& rhs);
unsigned int fSeed;
int fMin;
int fMax;
unsigned int fSeed;
int fMin;
int fMax;
};
}