You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user