github.com/aristanetworks/gomap@v0.0.0-20240103001659-f6b0e31fb1a7/rand_no122.go (about) 1 // Modifications copyright (c) Arista Networks, Inc. 2022 2 // Underlying 3 // Copyright 2014 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 //go:build !go1.22 8 9 package gomap 10 11 import ( 12 _ "unsafe" 13 ) 14 15 //go:linkname fastrand64 runtime.fastrand64 16 func fastrand64() uint64 17 18 func rand64() uint64 { 19 return fastrand64() 20 }