urandom

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 8 Imported by: 0

README

go-urandom

a package to generate random uuid,strings and other data types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

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

GenerateRandomBytes is used to generate random bytes of given size.

func IPV4Address

func IPV4Address() string

IPV4Address returns a valid IPv4 address as string

func IPV6Address

func IPV6Address() string

IPV6Address returns a valid IPv6 address as net.IP

func Integer

func Integer(lb, ub int) int

Integer returns a random integer value between lb(lowerbound) and ub(upperbound)

func RandomString

func RandomString(n int) string

RandomString generates a random string of size n

func UUID

func UUID() (string, error)

UUID generates a random UUID according to RFC 4122

Types

This section is empty.

Jump to

Keyboard shortcuts

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