14 lines
194 B
Go
14 lines
194 B
Go
// Copyright (C) 2021 Marius Schellenberger
|
|
|
|
package index
|
|
|
|
import (
|
|
"crypto/rand"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func newID() string {
|
|
b := make([]byte, 16)
|
|
rand.Read(b)
|
|
return hex.EncodeToString(b)
|
|
}
|