Skip to content

Commit

Permalink
Fix: transition to math/rand/v2 for Improved Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoang authored and maypok86 committed Mar 12, 2024
1 parent 29b0d2a commit ffa6afc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/xruntime/runtime_1.22.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
package xruntime

import (
_ "unsafe"
"math/rand/v2"
)

//go:noescape
//go:linkname Fastrand runtime.cheaprand
func Fastrand() uint32
func Fastrand() uint32 {
return rand.Uint32()
}

0 comments on commit ffa6afc

Please sign in to comment.