Gate based on destination rather than random.

This commit is contained in:
Jon Chambers
2021-01-15 17:48:09 -05:00
committed by Jon Chambers
parent affb219d72
commit 59eb6d10c1
2 changed files with 15 additions and 1 deletions

View File

@@ -37,4 +37,12 @@ public class AmbiguousIdentifier {
public boolean hasNumber() {
return number != null;
}
public int sendingGateHash() {
if (uuid != null) {
return (int)(uuid.getLeastSignificantBits() & 0xff);
} else {
return number.hashCode() & 0xff;
}
}
}