random

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT, MIT Imports: 4 Imported by: 0

README

go-random outputs randomness

This is a unix util that outputs randomness. It is a thin wrapper around crypto/rand. It aims to be portable (though it may not yet be).

Install
go install github.com/jbenet/go-random/random

(The extra /random is there because go get is stupidly too proscriptive about package/repository names and I don't yet know how to change the default binary output name)

Usage:
> random
Usage: random <int>
Print <int> random bytes (from Go's crypto/rand)
> random 6
2q���#
License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePseudoRandomBytes

func WritePseudoRandomBytes(count int64, w io.Writer, seed int64) error

func WriteRandomBytes

func WriteRandomBytes(count int64, w io.Writer) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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