Git Product home page Git Product logo

Comments (7)

aehatxdotd avatar aehatxdotd commented on September 27, 2024

Problem arose in software exploring the properties of subgroups of symmetrical groups, and my approach needed a hash representation of a permutation that was essentially unique and without relationships to other permutation hash. I found instances of pairs of permutations for which the sum of the two hashes was shared, causing the software logic to fail, in a reproducible but hard-to-pinpoint manner.

from spyder.

bessman avatar bessman commented on September 27, 2024
  1. This is obviously not a bug in Spyder.
  2. It's probably not a bug at all. hash makes no guarantee that different objects have different hashes, though excessive collisions may be considered erroneous.
  3. Use hashlib if your program cannot handle collisions.

from spyder.

aehatxdotd avatar aehatxdotd commented on September 27, 2024

from spyder.

ccordoba12 avatar ccordoba12 commented on September 27, 2024

Hey @aehatxdotd, thanks for reporting. Unfortunately, as @bessman said, this is not a Spyder bug so we can't help you with it here.

However, just as a quick advice, you could take a look at the hash functions from the cryptography module:

https://cryptography.io/en/latest/hazmat/primitives/cryptographic-hashes/

from spyder.

aehatxdotd avatar aehatxdotd commented on September 27, 2024

from spyder.

aehatxdotd avatar aehatxdotd commented on September 27, 2024

from spyder.

aehatxdotd avatar aehatxdotd commented on September 27, 2024

from spyder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.