From 3ba37a15fb20c702bb10e7a0b583944ee55f13fc Mon Sep 17 00:00:00 2001 From: ihun-il Date: Sun, 31 Mar 2024 12:44:08 +0900 Subject: [PATCH] =?UTF-8?q?:recycle::=200~8=EC=97=90=EC=84=9C=200~9?= =?UTF-8?q?=EA=B9=8C=EC=A7=80=EC=9D=98=20=EC=88=AB=EC=9E=90=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/domain/email/service/EmailService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ohsoontaxi/backend/domain/email/service/EmailService.java b/src/main/java/ohsoontaxi/backend/domain/email/service/EmailService.java index 497949e..7a5983b 100644 --- a/src/main/java/ohsoontaxi/backend/domain/email/service/EmailService.java +++ b/src/main/java/ohsoontaxi/backend/domain/email/service/EmailService.java @@ -71,9 +71,9 @@ private String createCode() { int index = random.nextInt(4); switch (index) { - case 0: key.append((char) ((int) random.nextInt(26) + 97)); break; - case 1: key.append((char) ((int) random.nextInt(26) + 65)); break; - default: key.append(random.nextInt(9)); + case 0: key.append((char) (random.nextInt(26) + 97)); break; + case 1: key.append((char) (random.nextInt(26) + 65)); break; + default: key.append(random.nextInt(10)); } } return key.toString();