summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/rand.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-05-26 10:37:59 -0700
committergVisor bot <gvisor-bot@google.com>2021-05-26 10:40:18 -0700
commit14a70624ce95dcf9e4505698b1174df583b13179 (patch)
tree7058e9b7e1960588346a76744affdfb5084678c8 /pkg/tcpip/stack/rand.go
parent931f9709f00eec79833f5894f98e294af498bac6 (diff)
Alias most local import
PiperOrigin-RevId: 375977977
Diffstat (limited to 'pkg/tcpip/stack/rand.go')
-rw-r--r--pkg/tcpip/stack/rand.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/stack/rand.go b/pkg/tcpip/stack/rand.go
index 421fb5c15..c8294eb6e 100644
--- a/pkg/tcpip/stack/rand.go
+++ b/pkg/tcpip/stack/rand.go
@@ -15,7 +15,7 @@
package stack
import (
- mathrand "math/rand"
+ "math/rand"
"gvisor.dev/gvisor/pkg/sync"
)
@@ -23,7 +23,7 @@ import (
// lockedRandomSource provides a threadsafe rand.Source.
type lockedRandomSource struct {
mu sync.Mutex
- src mathrand.Source
+ src rand.Source
}
func (r *lockedRandomSource) Int63() (n int64) {