github.com/duomi520/utils@v0.0.0-20240430123446-e03a4cddd6ec/link.go (about)

     1  package utils
     2  
     3  import (
     4  	_ "unsafe"
     5  )
     6  
     7  // 后续go版本无法预测不变
     8  //
     9  //go:linkname FastRand runtime.fastrand
    10  func FastRand() uint32
    11  
    12  // 后续go版本无法预测不变
    13  //
    14  //go:linkname Nanotime runtime.nanotime1
    15  func Nanotime() int64
    16  
    17  // https://mp.weixin.qq.com/s/IG4HRjU-pOeaKBZ1ZRSiSQ