summaryrefslogtreecommitdiff
path: root/lib/igt_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_aux.c')
-rw-r--r--lib/igt_aux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 7d5aa52c..f323f6a2 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -499,7 +499,7 @@ void igt_permute_array(void *array, unsigned size,
{
int i;
- for (i = size - 1; i > 1; i--) {
+ for (i = size - 1; i > 0; i--) {
/* yes, not perfectly uniform, who cares */
long l = hars_petruska_f54_1_random_unsafe() % (i +1);
if (i != l)