mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-13 04:46:15 +01:00
ce6fbd6231
In particular, targets with weight 0 should be very UNlikely to be selected, not very likely, as they were before. However, even ignoring that bug in the logic, there was an additional bug (swapping list items would cause the 0-weight items to get re-ordered incorrectly anyway), and the code contained several fencepost errors. This patch also adds gio/tests/srvtarget.c, which confirms that for a sample list of targets, we now generate all possible correct random sortings and no incorrect sortings, and the correct sortings occur in roughly the expected proportions (though if the current code is still wrong, those proportions may be wrong as well). http://bugzilla.gnome.org/show_bug.cgi?id=583398 |
||
---|---|---|
.. | ||
.gitignore | ||
buffered-input-stream.c | ||
data-input-stream.c | ||
data-output-stream.c | ||
desktop-app-info.c | ||
echo-server.c | ||
filter-streams.c | ||
g-file-info.c | ||
g-file.c | ||
g-icon.c | ||
httpd.c | ||
live-g-file.c | ||
live-g-file.txt | ||
Makefile.am | ||
memory-input-stream.c | ||
memory-output-stream.c | ||
readwrite.c | ||
resolver.c | ||
send-data.c | ||
simple-async-result.c | ||
sleepy-stream.c | ||
socket-client.c | ||
socket-server.c | ||
srvtarget.c | ||
unix-streams.c |