mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
DMX - Fix default random CID creation
This commit is contained in:
parent
07a4b0081f
commit
0ac1858627
@ -69,10 +69,10 @@ namespace RGB.NET.Devices.DMX.E131
|
||||
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!;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user