docstore/pkg/index/id.go
2019-05-04 21:58:02 +02:00

14 lines
194 B
Go

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