To match the output of the source 0.3.0 javascript, (Hashids method):
if (!this.seps.length || (this.alphabet.length / this.seps.length) > this.sepDiv) {
in C# is:
if ((Separators.Length == 0) || (((double)Alphabet.Length / (double)Separators.Length) > sepDivisor)) ( / is integer division in c# if both sides are integers, but floating division in javascript)
Without this, some combinations of alphabets and separators will yield results which do not match the javascript results.
To match the output of the source 0.3.0 javascript, (Hashids method):
if (!this.seps.length || (this.alphabet.length / this.seps.length) > this.sepDiv) {
in C# is:
if ((Separators.Length == 0) || (((double)Alphabet.Length / (double)Separators.Length) > sepDivisor)) ( / is integer division in c# if both sides are integers, but floating division in javascript)
Without this, some combinations of alphabets and separators will yield results which do not match the javascript results.