fst: rename from fipc
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
18
fst/shared.go
Normal file
18
fst/shared.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user