diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 8b8c84cc5593..5c690f7637f1 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -2290,8 +2290,9 @@ public static boolean isContextMenuVisible(Action a) { } } + @SuppressFBWarnings(value = "PREDICTABLE_RANDOM", justification = "True randomness isn't necessary for form item IDs") @Restricted(NoExternalUse.class) - public static String generateItemId(String id) { - return Math.floor(Math.random() * 3000) + "-" + id; + public static String generateItemId() { + return String.valueOf(Math.floor(Math.random() * 3000)); } } diff --git a/core/src/main/resources/lib/form/radio.jelly b/core/src/main/resources/lib/form/radio.jelly index a8726b059aa4..6df5cfbe5454 100644 --- a/core/src/main/resources/lib/form/radio.jelly +++ b/core/src/main/resources/lib/form/radio.jelly @@ -43,7 +43,7 @@ THE SOFTWARE. toggles the radio. - +