update GenerateGuidFromString to resolve to a stable hash code.

fix bots not showing up on live radar
This commit is contained in:
RaidMax
2020-09-21 15:30:42 -05:00
parent ac06b41a0b
commit a4a65a486a
10 changed files with 101 additions and 26 deletions

View File

@ -1,6 +1,4 @@
using System;
namespace SharedLibraryCore.Dtos.Meta.Responses
namespace SharedLibraryCore.Dtos.Meta.Responses
{
public class UpdatedAliasResponse : BaseMetaResponse
{
@ -17,6 +15,6 @@ namespace SharedLibraryCore.Dtos.Meta.Responses
return false;
}
public override int GetHashCode() => HashCode.Combine(Name.StripColors(), IPAddress);
public override int GetHashCode() => $"{Name.StripColors()}{IPAddress}".GetStableHashCode();
}
}