Author Dima.Tisnek
Recipients Dima.Tisnek
Date 2018-12-28.02:47:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545965225.21.0.451953823903.issue35600@roundup.psfhosted.org>
In-reply-to
Content
Just recently, i found rolling my own simple hash for strings.
(task was to distribute tests across executors, stably across invocations, no external input, no security)

In the old days I'd just `hash(some_variable)` but of course now I cannot. `hashlib.sha*` seemed too complex and I ended up with something like `sum(map(ord, str(some_variable)))`.

How much easier this would be is `siphash` implementation that cpython uses internally was available to me!
History
Date User Action Args
2018-12-28 02:47:08Dima.Tisneksetrecipients: + Dima.Tisnek
2018-12-28 02:47:05Dima.Tisneksetmessageid: <1545965225.21.0.451953823903.issue35600@roundup.psfhosted.org>
2018-12-28 02:47:05Dima.Tisneklinkissue35600 messages
2018-12-28 02:47:05Dima.Tisnekcreate