On Wednesday, November 7, 2018 at 11:09:50 PM UTC-8, vdelecroix wrote:
>
> Python 3 introduced randomness in their base hashing functions. That 
> impact strings. 
>
> $ python -c 'print(hash("hello Daniel!"))' 
> -4203807413548925149 
> $ python -c 'print(hash("hello Daniel!"))' 
> 7756578277334792321 
>
> Ouch. That's good to know. I'm sure we'll find some pickles that store 
values in dicts, assuming they're cached hash values. I guess any of the 
parallel machinery that uses "fork" will be fine, but multiprocessing that 
starts up worker processes as fresh python instances will also be 
vulnerable to assumptions that hashes are deterministic.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to