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

@ -37,6 +37,7 @@
* 【core 】 修复Linux下使用Windows路径分隔符导致的解压错误issue#I1MW0E@Gitee
* 【core 】 修复Word07Writer写出map问题issue#I1W49R@Gitee
* 【script 】 修复函数库脚本执行问题
* 【core 】 修复RGB随机颜色的上限值不对且API重复pr#1136@Gihub
-------------------------------------------------------------------------------------------------------------

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));
}
/**