xbmc/xbmc — pull request #2046 by jmarshallnz (2013-01-08 06:48:51+00:00)
Title: don't use rand() for choosing a random song for partymode

Ideally for Frodo. rand() typically returns a number between 0..32767, so for larger databases doesn't hit every possible row.

@koying: please test mysql. I have a feeling it will be quite slow, but not sure. Easy to test - just start partymode then skip a song.