From 421bfc14e748ae3515787ffb05d7547c29b5e8b3 Mon Sep 17 00:00:00 2001
From: Xavier Perret <xa.perret@outlook.com>
Date: Sun, 30 Oct 2022 17:51:03 +0100
Subject: [PATCH] simplification of id

---
 app/command-line/userinput.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/app/command-line/userinput.go b/app/command-line/userinput.go
index 64943db..30611a3 100644
--- a/app/command-line/userinput.go
+++ b/app/command-line/userinput.go
@@ -2,23 +2,19 @@ package command_line
 
 import (
 	"fmt"
-	"math/rand"
 	ObjectStorageAPI "node/object-storage"
 	Sender "node/sender"
 	. "node/types"
 	"node/utilities"
 	"os"
 	"strconv"
-	"time"
 )
 
 // userCreatedTransaction is a function to interactively create a transaction using the terminal
 func userCreatedTransaction(config Config) Transaction {
 	fmt.Println("--------------------STARTING USER CREATED TRANSACTION--------------------")
 	var trans Transaction
-	now := time.Now().String()
-	randomString := strconv.Itoa(rand.Int())
-	trans.Id = now + randomString
+	trans.Id = utilities.RandomString()
 
 	fmt.Println()
 	var receiver string
-- 
GitLab