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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址