Skip to content

Commit 17db27f

Browse files
thebenternCopilot
andauthored
Update Meshtastic/Data/MessageFactories/NodeInfoMessageFactory.cs
Co-authored-by: Copilot <[email protected]>
1 parent c45300f commit 17db27f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Meshtastic/Data/MessageFactories/NodeInfoMessageFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ private static void AddXEdDSASignature(MeshPacket meshPacket, DeviceStateContain
172172
// For testing, we'll generate a mock private key
173173
var random = new Random();
174174
var privateKey = new byte[32];
175-
random.NextBytes(privateKey);
175+
var privateKey = new byte[32];
176+
new SecureRandom().NextBytes(privateKey);
176177
return privateKey;
177178
}
178179

0 commit comments

Comments
 (0)