open-vault/sdk/helper/base62/base62.go
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

20 lines
439 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// DEPRECATED: this has been moved to go-secure-stdlib and will be removed
package base62
import (
"io"
extbase62 "github.com/hashicorp/go-secure-stdlib/base62"
)
func Random(length int) (string, error) {
return extbase62.Random(length)
}
func RandomWithReader(length int, reader io.Reader) (string, error) {
return extbase62.RandomWithReader(length, reader)
}