feat: Added util method for generating seeded guids

This commit is contained in:
Chris Cameron
2019-03-26 11:28:59 -04:00
parent 88a4801f8e
commit 87d1f4da16
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace ICD.Common.Utils
{
public static class GuidUtils
{
public static Guid GenerateSeeded(int seed)
{
Random seeded = new Random(seed);
byte[] bytes = new byte[16];
seeded.NextBytes(bytes);
return new Guid(bytes);
}
}
}