1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Updated some auto-generated projects.

This commit is contained in:
Julian Storer 2010-02-13 15:06:45 +00:00
parent 305d58519a
commit fbc62f200a
34 changed files with 520 additions and 550 deletions

View file

@ -46,13 +46,18 @@ void Random::setSeed (const int64 newSeed) throw()
seed = newSeed;
}
void Random::combineSeed (const int64 seedValue) throw()
{
seed ^= nextInt64() ^ seedValue;
}
void Random::setSeedRandomly()
{
seed ^= (int64) (pointer_sized_int) this;
seed ^= nextInt64() ^ Time::getMillisecondCounter();
seed ^= nextInt64() ^ Time::getHighResolutionTicks();
seed ^= nextInt64() ^ Time::getHighResolutionTicksPerSecond();
seed ^= nextInt64() ^ Time::currentTimeMillis();
combineSeed ((int64) (pointer_sized_int) this);
combineSeed (Time::getMillisecondCounter());
combineSeed (Time::getHighResolutionTicks());
combineSeed (Time::getHighResolutionTicksPerSecond());
combineSeed (Time::currentTimeMillis());
}
//==============================================================================