public static int hash32(final String text){
  final byte[] bytes=text.getBytes();
  return hash32(bytes,bytes.length);
}

public static int hash32 ( final String text ) { final byte [ ] bytes = text . getBytes ( ) ; return hash32 ( bytes , bytes . length ) ; }
generates 32 bit hash from a string .
