Lucene.Net.RandomHelpers.nextLong C# (CSharp) Method

nextLong() public static method

public static nextLong ( this random ) : long
random this
return long
        public static long nextLong(this Random random)
        {
            byte[] buffer = new byte[8];
            random.NextBytes(buffer);
            return BitConverter.ToInt64(buffer, 0);
        }