Cleaned up Network code (hope that fixes the PSP compilation problems)
Added random seed logging
This commit is contained in:
@@ -73,11 +73,12 @@ protected:
|
||||
list<int> usedRandomValues;
|
||||
bool log;
|
||||
public:
|
||||
RandomGenerator(bool doLog = false) : log(doLog) {};
|
||||
RandomGenerator(unsigned int seed = -1, bool doLog = false) : log(doLog) { if(seed != -1) srand(seed);};
|
||||
void loadRandValues(string s);
|
||||
ostream& saveUsedRandValues(ostream& out) const;
|
||||
ostream& saveLoadedRandValues(ostream& out);
|
||||
int random();
|
||||
void setSeed(unsigned int seed) { srand(seed); };
|
||||
template<typename Iter> void random_shuffle(Iter first, Iter last)
|
||||
{
|
||||
ptrdiff_t i, n;
|
||||
|
||||
Reference in New Issue
Block a user