2008-05-05 Andras Barna <[email protected]>
authorsartek
Tue, 06 May 2008 04:25:07 +0000
changeset 1096 0fe822bce53a
parent 1095 e9537d6af427
child 1097 d52bc77fb7f5
2008-05-05 Andras Barna <[email protected]> * patches/xmms1-01-rand.diff: update, still need work.
ChangeLog
patches/xmms1-01-rand.diff
--- a/ChangeLog	Tue May 06 04:18:35 2008 +0000
+++ b/ChangeLog	Tue May 06 04:25:07 2008 +0000
@@ -1,3 +1,8 @@
+2008-05-06 Andras Barna <[email protected]>
+
+        * patches/xmms1-01-rand.diff: update, still need
+          work.
+
 2008-05-06  halton huo <[email protected]>
 
 	* SFEgtk-vnc.spec: remove ast stuff.
--- a/patches/xmms1-01-rand.diff	Tue May 06 04:18:35 2008 +0000
+++ b/patches/xmms1-01-rand.diff	Tue May 06 04:25:07 2008 +0000
@@ -19,3 +19,15 @@
  		list->prev = ptrs[i + j];
  		ptrs[i + j]->next = list;
  		list = ptrs[i + j];
+--- xmms-1.2.11/xmms/main.c	Mon May  5 14:35:08 2008
++++ xmms-1.2.11.1/xmms/main.c	Mon May  5 14:39:44 2008
+@@ -4178,6 +4178,9 @@
+ 
+ int main(int argc, char **argv)
+ {
++	struct timeval tp;
++	gettimeofday (&tp, NULL);
++	srand((int)(tp.tv_usec % INT_MAX));
+ 	char *filename;
+ 	const char *sm_client_id;
+ 	struct cmdlineopt options;