github.com/zhangyunhao116/fastrand@v0.4.0/runtime_go122.go (about)

     1  //go:build go1.22
     2  // +build go1.22
     3  
     4  package fastrand
     5  
     6  import (
     7  	_ "unsafe"
     8  )
     9  
    10  //go:linkname runtimefastrand runtime.cheaprand
    11  func runtimefastrand() uint32
    12  
    13  //go:linkname runtimefastrand64 runtime.cheaprand64
    14  func runtimefastrand64() uint64
    15  
    16  //go:linkname runtimefastrandu runtime.cheaprandu
    17  func runtimefastrandu() uint