summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/rand.go
diff options
context:
space:
mode:
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) {