github.com/detailyang/fastrand-go@v0.0.0-20191106153122-53093851e761/fastrand.go (about)

     1  //Package fastrand exports runtime.fastrand to public
     2  package fastrand
     3  
     4  import (
     5  	_ "unsafe"
     6  )
     7  
     8  //go:linkname FastRand runtime.fastrand
     9  func FastRand() uint32
    10  
    11  //go:linkname FastRandN runtime.fastrandn
    12  func FastRandN(n uint32) uint32