hash/hashmap: replace MakeSeed with NewSeed? #35060
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
release-blocker
Milestone
In #28322, @rsc said "it sounds like we have converged on: [...]
func NewSeed() Seed
".@randall77 later proposed "It might be nice to be able to serialize/deserialize a
Seed
. Probably not necessary for v1." "...or construct aSeed
from anint64
."@rsc subsequently stated "I agree about @randall77's clarifications and added them above.", incorporating the other changes @randall77 proposed in his comments (i.e., Add and Hash semantics), but not these Seed changes (which weren't addressed).
However, CL 186877 did implement
MakeSeed(uint64) Seed
rather thanNewSeed() Seed
,Filing as a release blocker just to make sure we're agreed on the API that we want exposed here before we're committed to supporting it.
--
My 2c: Since seeds only have meaning within a single process, it seems just as easy to simply call
hash.NewSeed
and then pass thehash.Seed
value around as it is to generate a randomuint64
, pass that around, and callhash.MakeSeed
.The text was updated successfully, but these errors were encountered: