GO-2025-3942 : CoreDNS: DNS Cache Pinning via etcd Lease ID Confusion in github.com/coredns/coredns
Discover Packages
github.com/coredns/coredns
plugin
pkg
rand
package
Version:
v1.12.3
Opens a new window with list of versions in this module.
Published: Aug 5, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package rand is used for concurrency safe random number generator.
This package provides a thread-safe wrapper around math/rand for use in
load balancing and server selection. It is NOT suitable for cryptographic
purposes and should not be used for security-sensitive operations.
Rand is used for concurrency safe random number generator.
New returns a new Rand from seed.
func (*Rand) Int ¶
Int returns a non-negative pseudo-random int from the Source in Rand.r.
func (*Rand) Perm ¶
Perm returns, as a slice of n ints, a pseudo-random permutation of the
integers in the half-open interval [0,n) from the Source in Rand.r.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.