seed

package module
v0.0.0-...-229e417 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2014 License: MIT Imports: 4 Imported by: 0

README

seed -- Easily generate semi-strong random number seeds in Go
=============================================================

This is a trivial helper to easily initialize PRNGs with some entropy,
in the Go programming language.

It's MIT licensed, but probably too trivial to have any protection any
way. Go forth and use it.

Install like this::

  go get github.com/tv42/seed

Read the package documentation at

http://godoc.org/github.com/tv42/seed

Documentation

Overview

Generate semi-strong random number seeds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rand

func Rand() *rand.Rand

Create a randomly-seeded pseudo-random number generator. See math/rand.

func Seed

func Seed() int64

Return a seed that is usable as a input to math/rand. Uses crypto/rand as a source. The seeds have true entropy in them, but are not necessarily cryptographically safe.

func Source

func Source() rand.Source

Create a randomly-seeded pseudo-random number source. See math/rand.

Types

This section is empty.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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