More specifically. Is it possible to get Psych to choose the same anchor numbers each time an equivalent hash(dictionary) is serialized?
I run YAML.dump(some_hash), then later I run YAML.dump(some_other_hash). The hashes are deeply identical, but do not necessarily occupy the same memory.
some_hash's YAML has an anchor *70312330894080 while some_other_hash has *70312318281380.
I would like identical hashes to yield identical YAML. So that I can test for sameness by string-comparing the YAML.
Thanks, Matt