mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Merge pull request #200 from DarthAffe/Devices/DMX
DMX - Fix default random CID creation
This commit is contained in:
1 file changed
+4
-4
@@ -67,12 +67,12 @@ namespace RGB.NET.Devices.DMX.E131
|
||||
this.Hostname = deviceDefinition.Hostname;
|
||||
this.Port = deviceDefinition.Port;
|
||||
this.Universe = deviceDefinition.Universe;
|
||||
|
||||
|
||||
byte[]? cid = deviceDefinition.CID;
|
||||
if ((CID == null) || (CID.Length != CID_LENGTH))
|
||||
if ((cid == null) || (cid.Length != CID_LENGTH))
|
||||
{
|
||||
CID = new byte[CID_LENGTH];
|
||||
new Random().NextBytes(CID);
|
||||
cid = new byte[CID_LENGTH];
|
||||
new Random().NextBytes(cid);
|
||||
}
|
||||
|
||||
CID = cid!;
|
||||
|
||||
Reference in new issue
Block a user