Closed bruno-garcia closed 8 years ago
_random was being instantiated twice:
_random
private readonly Random _random = new Random(); and public SkipList(IComparer<T> comparer = null) { _random = new Random(); } To keep consistent, I removed field declaration assignment.
private readonly Random _random = new Random();
public SkipList(IComparer<T> comparer = null) { _random = new Random(); }
_random
was being instantiated twice:private readonly Random _random = new Random();
andpublic SkipList(IComparer<T> comparer = null) { _random = new Random(); }
To keep consistent, I removed field declaration assignment.