Artifact node IDs are now only 3 digits long (#26482)
* 2-digit nodes * 3-digits instead * Fix exclusive bounds
This commit is contained in:
@@ -44,10 +44,10 @@ public sealed partial class ArtifactSystem
|
|||||||
|
|
||||||
private int GetValidNodeId()
|
private int GetValidNodeId()
|
||||||
{
|
{
|
||||||
var id = _random.Next(10000, 100000);
|
var id = _random.Next(100, 1000);
|
||||||
while (_usedNodeIds.Contains(id))
|
while (_usedNodeIds.Contains(id))
|
||||||
{
|
{
|
||||||
id = _random.Next(10000, 100000);
|
id = _random.Next(100, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
_usedNodeIds.Add(id);
|
_usedNodeIds.Add(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user