diff options
author | ms <ms@taler.net> | 2021-10-29 15:07:43 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2021-10-29 15:07:43 +0200 |
commit | 240a8c74272956eb6439dd44b4e903f96671f658 (patch) | |
tree | bf9e6d661a90ba62851ff09be1e18be32eaa552a | |
parent | 1419751bfbabc81d0634b3784dca895193f47589 (diff) | |
download | wallet-core-240a8c74272956eb6439dd44b4e903f96671f658.tar.xz |
fix IBAN generator
-rw-r--r-- | packages/taler-wallet-cli/src/harness/helpers.ts | 4 |
1 files changed, 1 insertions, 3 deletions
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 { |