All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pitest.classinfo.AddlerHash Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.classinfo;

import java.util.zip.Adler32;

public class AddlerHash implements HashFunction {

  @Override
  public long hash(final byte[] value) {
    final Adler32 adler = new Adler32();
    adler.update(value, 0, value.length);
    return adler.getValue();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy