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:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user