mpxplugins/viewplugins/views/collectionviewhg/src/mpxcollectionviewhgplaylisthelper.cpp
equal
deleted
inserted
replaced
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); |