mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 18:16:43 +00:00
14 lines
288 B
Go
14 lines
288 B
Go
package vault
|
|
|
|
import (
|
|
"github.com/ProtonMail/gopenpgp/v2/crypto"
|
|
)
|
|
|
|
// RandomToken is a function that returns a random token.
|
|
var RandomToken func(size int) ([]byte, error)
|
|
|
|
// By default, we use crypto.RandomToken to generate tokens.
|
|
func init() {
|
|
RandomToken = crypto.RandomToken
|
|
}
|