diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-08-27 00:48:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-27 00:48:47 +0000 |
commit | dab18d9525e50d135aff0758d2171bf021d240bb (patch) | |
tree | d64b26bcab9c8965f5143d3ea40d1a57a8a47819 | |
parent | eff7db37ba2bc8bb6dcce47b75bd6e31df6b495a (diff) | |
parent | 1076702371fa02a36b70a6abf10dbec886742208 (diff) |
Merge release-20210816.0-48-g107670237 (automated)
-rw-r--r-- | pkg/tcpip/stack/stack.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index 8e5c6edbf..cfa8a2e8f 100644 --- a/pkg/tcpip/stack/stack.go +++ b/pkg/tcpip/stack/stack.go @@ -1823,6 +1823,13 @@ func (s *Stack) SetNUDConfigurations(id tcpip.NICID, proto tcpip.NetworkProtocol return nic.setNUDConfigs(proto, c) } +// Seed returns a 32 bit value that can be used as a seed value. +// +// NOTE: The seed is generated once during stack initialization only. +func (s *Stack) Seed() uint32 { + return s.seed +} + // Rand returns a reference to a pseudo random generator that can be used // to generate random numbers as required. func (s *Stack) Rand() *rand.Rand { |