Ejemplo n.º 1
0
 def _get_hash_recursive(parents):
     if action_result in parents: return 0
     newparents = parents + [action_result]
     tmphash = (0x954ba8e3e4656df + Waypoint._get_hash_recursive(newparents)
                ) & 0xffffffffffffffff
     tmphash = (((tmphash << 1) & 0xffffffffffffffff) +
                ((tmphash >> 63) & 0x1)) & 0xffffffffffffffff
     return tmphash
Ejemplo n.º 2
0
 def _get_hash_recursive(parents):
     if connect_request in parents: return 0
     newparents = parents + [connect_request]
     tmphash = (
         0x39444e6538533cfc +
         Waypoint._get_hash_recursive(newparents)) & 0xffffffffffffffff
     tmphash = (((tmphash << 1) & 0xffffffffffffffff) +
                ((tmphash >> 63) & 0x1)) & 0xffffffffffffffff
     return tmphash
Ejemplo n.º 3
0
 def _get_hash_recursive(parents):
     if action_package in parents: return 0
     newparents = parents + [action_package]
     tmphash = (0x8f3ef868f9459250+ Waypoint._get_hash_recursive(newparents)) & 0xffffffffffffffff
     tmphash  = (((tmphash<<1)&0xffffffffffffffff)  + ((tmphash>>63)&0x1)) & 0xffffffffffffffff
     return tmphash