moved initialization of RNG to top of main()

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1412 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-30 20:12:49 +00:00
parent 2e4d336a54
commit 5efa20d772
2 changed files with 4 additions and 2 deletions

View File

@@ -80,6 +80,9 @@ inline void loadTranslation( const QString & _tname,
int main( int argc, char * * argv )
{
// intialize RNG
srand( getpid() + time( 0 ) );
bool core_only = FALSE;
for( int i = 1; i < argc; ++i )
@@ -332,8 +335,6 @@ int main( int argc, char * * argv )
#endif
#endif
srand( getpid() + time( 0 ) );
if( !configManager::inst()->loadConfigFile() )
{
printf( "could not load config file!\n" );