From fa4ca953b8fa28f214a37fdd11d121243c9aa437 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 16 Jun 2026 17:27:33 +0200 Subject: [PATCH] Fix random string code --- src/extensions/Random.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/Random.ts b/src/extensions/Random.ts index fe865891c..8e08aae97 100644 --- a/src/extensions/Random.ts +++ b/src/extensions/Random.ts @@ -93,7 +93,7 @@ export class Random { public static getString(choices: string, length: number) { const _choices = choices.split(""); const result = new Array(length); - for (const i in result) { + for (let i = 0; i < length; i++) { result[i] = _choices[Random.nextInt(0, _choices.length)]; }