taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 240a8c74272956eb6439dd44b4e903f96671f658
parent 1419751bfbabc81d0634b3784dca895193f47589
Author: ms <ms@taler.net>
Date:   Fri, 29 Oct 2021 15:07:43 +0200

fix IBAN generator

Diffstat:
Mpackages/taler-wallet-cli/src/harness/helpers.ts | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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 {