* ID hash 0x00 and 0xFF now reserved for future.

此提交包含在:
Scott Powell
2025-04-06 12:34:09 +10:00
父節點 86a3f592b9
當前提交 9498d2e824
共有 4 個檔案被更改,包括 16 行新增0 行删除
+4
查看文件
@@ -300,6 +300,10 @@ public:
((StdRNG *)getRNG())->begin(millis());
self_id = mesh::LocalIdentity(getRNG()); // create new random identity
int count = 0;
while (count < 10 && (self_id.pub_key[0] == 0x00 || self_id.pub_key[0] == 0xFF)) { // reserved id hashes
self_id = mesh::LocalIdentity(getRNG()); count++;
}
store.save("_main", self_id);
}