github.com/hashicorp/vault/sdk@v0.11.0/helper/base62/base62.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  // DEPRECATED: this has been moved to go-secure-stdlib and will be removed
     5  package base62
     6  
     7  import (
     8  	"io"
     9  
    10  	extbase62 "github.com/hashicorp/go-secure-stdlib/base62"
    11  )
    12  
    13  func Random(length int) (string, error) {
    14  	return extbase62.Random(length)
    15  }
    16  
    17  func RandomWithReader(length int, reader io.Reader) (string, error) {
    18  	return extbase62.RandomWithReader(length, reader)
    19  }