Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51964 Details for
Bug 24137
A patch to improve xmms random generator
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated randomize patch...solarisisms
xmms-1.2.10-random.patch (text/plain), 687 bytes, created by
devsk
on 2005-02-23 10:19:59 UTC
(
hide
)
Description:
updated randomize patch...solarisisms
Filename:
MIME Type:
Creator:
devsk
Created:
2005-02-23 10:19:59 UTC
Size:
687 bytes
patch
obsolete
>--- xmms-1.2.10/xmms/playlist.c.orig 2005-02-23 09:57:20.751963000 -0800 >+++ xmms-1.2.10/xmms/playlist.c 2005-02-23 09:57:28.664890000 -0800 >@@ -563,7 +563,11 @@ > /* If there are entries */ > if (g_list_length(skinlist)) { > /* Get a random value to select the skin to use */ >- int randval = random() % (g_list_length(skinlist) + 1); >+#if defined(sun) >+ int randval = (gint)(random() / (INT_MAX + 1.0) * (g_list_length(skinlist) + 1)); >+#else >+ int randval = (gint)(random() / (RAND_MAX + 1.0) * (g_list_length(skinlist) + 1)); >+#endif > /* If the random value is 0, use the default skin */ > /* Otherwise subtract 1 from the random value and */ > /* select the skin */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24137
:
17126
|
17680
|
51964
|
51972