github.com/database64128/shadowsocks-go@v1.7.0/magic/fastrand.go (about)

     1  package magic
     2  
     3  import _ "unsafe"
     4  
     5  //go:linkname Fastrand runtime.fastrand
     6  func Fastrand() uint32
     7  
     8  //go:linkname Fastrandn runtime.fastrandn
     9  func Fastrandn(n uint32) uint32
    10  
    11  //go:linkname Fastrand64 runtime.fastrand64
    12  func Fastrand64() uint64
    13  
    14  //go:linkname Fastrandu runtime.fastrandu
    15  func Fastrandu() uint