bigloo.foreign.get_hash_number C# (CSharp) Method

get_hash_number() public static method

public static get_hash_number ( byte s ) : int
s byte
return int
        public static int get_hash_number( byte[]  s )
        {
            byte hash= 0;

            for ( int i= 0 ; i < s.Length ; ++i )
               hash=  hash_random_table[(hash ^ s[i]) & 0xFF];
            return (hash & 0xFF);
        }
foreign