gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 02/02: fix IBAN generator


From: gnunet
Subject: [taler-wallet-core] 02/02: fix IBAN generator
Date: Fri, 29 Oct 2021 15:07:51 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository wallet-core.

commit 240a8c74272956eb6439dd44b4e903f96671f658
Author: ms <ms@taler.net>
AuthorDate: Fri Oct 29 15:07:43 2021 +0200

    fix IBAN generator
---
 packages/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
index 3b4e1643..1dc38f0f 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 {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]