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:
@@ -4,6 +4,7 @@
|
||||
- added --dump parameter for easily uncompressing mmpz-files
|
||||
- try to set realtime priority after command-line parsing as the
|
||||
resulting warning might be annoying at this place
|
||||
- moved initialization of RNG to top of main()
|
||||
|
||||
* src/core/mmp.cpp:
|
||||
quirks for loading drumsynth-samples whose directory-names have
|
||||
|
||||
@@ -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