Skip to content

Commit 9829f3e

Browse files
author
王灏
committed
[IMP] bug fix
1 parent 5c3eadc commit 9829f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/choerodon/devops/app/service/impl/DevopsNotificationServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void sendMessage(Long projectId, Long envId, Long notificationId, Long ob
156156

157157
// 生成验证码,存放在redis
158158
String resendKey = String.format("choerodon:devops:env:%s:%s:%s", devopsEnvironmentDTO.getCode(), objectType, objectCode);
159-
String captcha = String.valueOf(RANDOM.nextInt(899999) + 100000);
159+
String captcha = String.valueOf(new Random().nextInt(899999) + 100000);
160160
redisTemplate.opsForValue().set(resendKey, captcha, TIMEOUT, TimeUnit.SECONDS);
161161

162162

0 commit comments

Comments
 (0)