From 1076702371fa02a36b70a6abf10dbec886742208 Mon Sep 17 00:00:00 2001 From: Zeling Feng Date: Thu, 26 Aug 2021 17:42:15 -0700 Subject: Add Stack.Seed() back ... because it is still used by fuchsia. PiperOrigin-RevId: 393246904 --- pkg/tcpip/stack/stack.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- cgit v1.2.3