fix color bug

This commit is contained in:
Looly
2020-09-29 11:55:18 +08:00
parent f3667dd110
commit 1c8158dc48
2 changed files with 3 additions and 2 deletions

View File

@@ -524,9 +524,9 @@ public class RandomUtil {
* @since 4.1.5
* @deprecated 使用{@link ImagUtil#randomColor()}
*/
public static Color randomColor() {
public static Color randomColor() {
final Random random = getRandom();
return new Color(random.nextInt(256), random.nextInt(2565), random.nextInt(256));
return new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256));
}
/**