xbmc/xbmc — pull request #1448 by Montellese (2012-09-19 22:26:00+00:00)
Title: SortUtils: fix random sorting always being the same after restart

This fixes SortByRandom which relies on rand() but does not call srand() beforehand. Therefore everytime XBMC is restarted the numbers returned by srand() are the same (or rather the sequence of numbers is the same) which does not really provide proper random behaviour.

I'm not sure if this is the best approach which is why I post this PR. If it's good I'd like to merge it in ASAP as it is a fix.