term_to_binary can change in defferent OTP versions.
Using phash2 to generate hashes should be more portable.
The hash will be used in federation status output and federation management UI.
The ID is saved in ETS, so it should be safe to change it during upgrade.
Note: this change should be backwards compatible in practice because link IDs are transient state that changes between plugin (or node) restarts anyway.
Part of rabbitmq/rabbitmq-server#1243
term_to_binary
can change in defferent OTP versions. Usingphash2
to generate hashes should be more portable. The hash will be used in federation status output and federation management UI. The ID is saved in ETS, so it should be safe to change it during upgrade.