Re: Hash salt John Cowan 11 Nov 2015 05:21 UTC

Taylan Ulrich Bayırlı/Kammer scripsit:

> Returns a global and constant salt value for use in hash functions.
> This is a random value for every run of the program,

This forbids a particularly paranoid implementation from using a
distinct salt for each hash table and storing it with the hash table.
I've made several tries at rewording to allow this use case, but I
can't think how to put it.

> except when the environment variable `SRFI_126_HASH_SEED` is set to
> a non-empty string before program startup.

I think this part should be left up to implementations.  In any case,
it's not clear what its force is: does this make the salt constant,
or the result of converting to the string to an exact integer, or what?

--
My .sigs are from my large and miscellaneous reading both on and off the net.
Occasionally I hear one viva voce or make one up (without attribution,
of course).  I try to stay within the McQuary limit, but sometimes fail,
as in this case.  In general, the quotes are chosen at random by a script
from <http://www.ccil.org/~cowan/signatures>, but sometimes I choose one
on purpose.  I've been collecting and using them for 30+ years.