From: Ben Soares Date: Wed, 6 Dec 2023 22:00:06 +0000 (+0000) Subject: JAL-4353 re-used random color code X-Git-Tag: Release_2_11_4_0~56^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=25e192bb674beff817997afd29e2bfd0fb75a830;p=jalview.git JAL-4353 re-used random color code --- diff --git a/src/jalview/util/ColorUtils.java b/src/jalview/util/ColorUtils.java index 0e44f34..24128ea 100644 --- a/src/jalview/util/ColorUtils.java +++ b/src/jalview/util/ColorUtils.java @@ -236,10 +236,7 @@ public class ColorUtils if ("random".equals(colour)) { - Random rand = new Random(); - col = new Color(rand.nextInt(256), rand.nextInt(256), - rand.nextInt(256)); - return col; + return generateRandomColor(null); } try