MSP: Make node ID assignment deterministic