github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/internal/linkname/runtime_1.22.go (about)

     1  //go:build gc && go1.22
     2  
     3  package linkname
     4  
     5  import _ "unsafe"
     6  
     7  func Runtime_fastrand() uint32 {
     8  	return uint32(Runtime_fastrand64())
     9  }
    10  
    11  //go:linkname Runtime_fastrand64 runtime.rand
    12  //go:nosplit
    13  func Runtime_fastrand64() uint64