diff --git a/packages/taler-wallet-cli/src/harness/helpers.ts b/packages/taler-wallet-cli/src/harness/helpers.ts index 3b4e1643f..1dc38f0ff 100644 --- a/packages/taler-wallet-cli/src/harness/helpers.ts +++ b/packages/taler-wallet-cli/src/harness/helpers.ts @@ -63,9 +63,7 @@ export interface SimpleTestEnvironment { } export function getRandomIban(countryCode: string): string { - return `${countryCode}715001051796${(Math.random() * 100000000) - .toString() - .substring(0, 6)}`; + return `${countryCode}715001051796${Math.floor(Math.random() * 1000000)}`; } export function getRandomString(): string {