[Bug 1556588] Re: Hash collision

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 1556588] Re: Hash collision

Hilaire Fernandes
Administrator
For the broken Durer script, hash problem comes from:

DrGLine2PtsItem>>rehash
 ^ hash := super rehash bitXor: self parents reverse hash


The part with the hash on the reversed parents is the source of the problem.
It was introduced so lines (AB) and (BA) share the same hash value.

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1556588

Title:
  Hash collision

Status in Dr. Geo II:
  In Progress

Bug description:
  We have collision between DrGPointIntersection and DrGSegment2Points
  instances.

  Althought parents of these two instances:
  - two circles
  - two point

  It occurs with Koch and Durer scripts

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1556588/+subscriptions
Was this message helpful?
Tell us!