fastrand

package module
v0.0.0-...-5309385 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 1 Imported by: 2

README

fastrand-go

Package fastrand exports runtime.fastrand to public

╰─λ go test -benchmem -run="^\$" -bench Benchmark ./... -v                                                                          306ms
goos: darwin
goarch: amd64
pkg: github.com/detailyang/fastrand-go
BenchmarkFastRand-8   	493277304	         2.40 ns/op	       0 B/op	       0 allocs/op
BenchmarkMathRand-8   	54207786	        19.2 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/detailyang/fastrand-go	2.502s

Documentation

Overview

Package fastrand exports runtime.fastrand to public

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastRand

func FastRand() uint32

func FastRandN

func FastRandN(n uint32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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