sigRand

package
v0.0.0-...-6c90f4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDecHexString2Int

func ConvertDecHexString2Int(DecString string) uint64

Convert a Integer String or Hex String to a Uint64

func ConvertDecHexString2Int32

func ConvertDecHexString2Int32(DecString string) uint32

Convert a Integer String or Hex String to a Uint32

func ConvertHex2Int

func ConvertHex2Int(hexString string) uint64

Convert a Hex string to a uint64 hexString := "75bcd105" fmt.Println(ConvertHex2Int(hexString))

func ConvertHex2Int32

func ConvertHex2Int32(hexString string) uint32

Convert a Hex string to a uint32 hexString := "75bcd105" fmt.Println(ConvertHex2Int(hexString))

func ConvertString2Int

func ConvertString2Int(DecString string) uint64

Convert a Integer String to a uint64 "9893489348439"

func ConvertString2Int32

func ConvertString2Int32(DecString string) uint32

Convert a Integer String to a uint32 "9893489348439"

func GenRandomHighwayKey

func GenRandomHighwayKey() (string, error)

Generate a random 32-byte hex string for high way hash

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes

func GenerateRandomBytes64

func GenerateRandomBytes64(n uint64) ([]byte, error)

func GenerateRandomHex

func GenerateRandomHex(n int) (string, error)

GenerateRandomHex

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

GenerateRandomString returns a securely generated random string. it returns a string and error

func RandInt64

func RandInt64() (int64, error)

Generate a Randint64

func RandUint64

func RandUint64() (uint64, error)

Generate a Randuint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL