github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/utils/random/rand.go (about)

     1  package random
     2  
     3  import (
     4  	_ "unsafe"
     5  )
     6  
     7  //go:linkname FastRandN runtime.fastrandn
     8  func FastRandN(max uint32) uint32
     9  
    10  //go:linkname FastRand runtime.fastrand
    11  func FastRand() uint32