fix IBAN generator

This commit is contained in:
ms 2021-10-29 15:07:43 +02:00
parent 1419751bfb
commit 240a8c7427
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -63,9 +63,7 @@ export interface SimpleTestEnvironment {
} }
export function getRandomIban(countryCode: string): string { export function getRandomIban(countryCode: string): string {
return `${countryCode}715001051796${(Math.random() * 100000000) return `${countryCode}715001051796${Math.floor(Math.random() * 1000000)}`;
.toString()
.substring(0, 6)}`;
} }
export function getRandomString(): string { export function getRandomString(): string {