moonpyk / ncuid

Collision-resistant ids for .NET (port of https://github.com/dilvie/cuid)
MIT License
36 stars 13 forks source link

Incorrect Split() logic? #4

Open bburgin opened 4 years ago

bburgin commented 4 years ago

For this line, https://github.com/moonpyk/ncuid/blob/9f5efe059646cc4c9ab1952216c907a6f058b78a/NCuid/Cuid.cs#L127

Should it be hostname.ToCharArray().Select(c=>c.ToString()) instead?

I tried the existing code and found that it just returned ["hostname"], where hostname is my hostname value.