From f0fd0413e2904e0824707d866a044341184bbe13 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 5 May 2014 21:22:12 +0200 Subject: gib_list_randomize: use code better suited for short lists (closes #151) Note that the i == r check was never reached in the original code but may be in the new variant. Since a shuffled list may well have one or two elements retain their absolute position once in a while, this should not be a problem. tests with 2- and 3-element lists show an even distribution amongst all elements. --- ChangeLog | 1 + 1 file changed, 1 insertion(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 375a80b..0a441c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ git HEAD three projects (one of which is feh). There is at least one known bug in it, and as I do not have the time to take over giblib development, importing the library seems to be the best solution. + * Fix/improve --randomize for short filelists (closes #151) Sun, 27 Apr 2014 20:28:02 +0200 Daniel Friesel -- cgit v1.2.3