portFor static method
A stable port per simulator, so a runner left by an earlier glint is found again.
Implementation
static int portFor(String udid) {
var h = 0x811c9dc5;
for (final c in udid.toUpperCase().codeUnits) {
h = ((h ^ c) * 0x01000193) & 0xffffffff;
}
return 22100 + h % 800;
}