pgregory.net/rand@v1.0.3-0.20230808192358-a0b8ce02f4da/global_unsafe.go (about) 1 // Copyright 2022 Gregory Petrosyan <gregory.petrosyan@gmail.com> 2 // 3 // This Source Code Form is subject to the terms of the Mozilla Public 4 // License, v. 2.0. If a copy of the MPL was not distributed with this 5 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 6 7 //go:build unsafe 8 9 package rand 10 11 import ( 12 _ "unsafe" 13 ) 14 15 // if you *really* want to win the benchmarks game: 16 17 //go:linkname rand64 runtime.fastrand64 18 func rand64() uint64