1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Merge pull request #200 from DarthAffe/Devices/DMX

DMX - Fix default random CID creation
This commit is contained in:
DarthAffe 2021-04-17 01:48:42 +02:00 committed by GitHub
commit 19ecd3c8be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,10 +69,10 @@ namespace RGB.NET.Devices.DMX.E131
this.Universe = deviceDefinition.Universe; this.Universe = deviceDefinition.Universe;
byte[]? cid = deviceDefinition.CID; byte[]? cid = deviceDefinition.CID;
if ((CID == null) || (CID.Length != CID_LENGTH)) if ((cid == null) || (cid.Length != CID_LENGTH))
{ {
CID = new byte[CID_LENGTH]; cid = new byte[CID_LENGTH];
new Random().NextBytes(CID); new Random().NextBytes(cid);
} }
CID = cid!; CID = cid!;