On Fri, Dec 17, 2021 at 02:07:38PM -0000, Hao Hu wrote: > Hi, > > I am wondering if it would be good to add an additional keyword `seed` > to the builtin function *hash* to allow us to set arbitrary seed to > ensure reproducible results.
I assume you are talking about hashing strings, I believe they are the only objects that are effected by hash randomization. > In parallel, we have identified a couple of real use cases that > require that an arbitrary seed is used for a limited scope. > For instance, if we create a caching programming interface that relies > on a distributed kv store, it would be very important to make sure > that the hash key stays the same when the application is rebooted or > replicated. Does your distributed key/value store have to use the built-in hash function? -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ZEKR2Y673GSHYBU5MBIHHLCSFF5YUALJ/ Code of Conduct: http://python.org/psf/codeofconduct/