From 5ea7333431942780c79c02a990682e44b6834ed6 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Thu, 19 Dec 2024 18:19:47 +0900 Subject: fst: implement app id parser Signed-off-by: Ophestra Umiker --- fst/shared.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'fst/shared.go') diff --git a/fst/shared.go b/fst/shared.go index 39544863..ae59b236 100644 --- a/fst/shared.go +++ b/fst/shared.go @@ -1,18 +1,2 @@ // Package fst exports shared fortify types. package fst - -import ( - "crypto/rand" - "encoding/hex" -) - -type ID [16]byte - -func (a *ID) String() string { - return hex.EncodeToString(a[:]) -} - -func NewAppID(id *ID) error { - _, err := rand.Read(id[:]) - return err -} -- cgit v1.3.1