mpxplugins/viewplugins/views/collectionviewhg/src/mpxcollectionviewhgplaylisthelper.cpp
branchRCL_3
changeset 14 943ff5625028
parent 11 13afc0e517bd
child 17 c8156a91d13c
equal deleted inserted replaced
11:13afc0e517bd 14:943ff5625028
   397     {
   397     {
   398     MPX_FUNC( "CMPXCollectionViewHgPlaylistHelper::InitPlaybackEngineL" );
   398     MPX_FUNC( "CMPXCollectionViewHgPlaylistHelper::InitPlaybackEngineL" );
   399 
   399 
   400     if( !iInitCanceled )
   400     if( !iInitCanceled )
   401         {
   401         {
   402         aPath.Remove(0); // we want to remove index 0 which is shuffle item
       
   403         TTime time;
   402         TTime time;
   404         time.UniversalTime();
   403         time.UniversalTime();
   405         TInt64 seed = time.Int64();
   404         TInt64 seed = time.Int64();
   406         TInt randIndex = Math::Rand(seed) % aPath.Count();
   405         TInt randIndex = Math::Rand(seed) % aPath.Count();
   407         aPath.Set(randIndex);
   406         aPath.Set(randIndex);