# std.hash.crc: simplify api · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ef5618fcd5c0bf3389861c2071660b0a95428d13)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ef5618fcd5c0bf3389861c2071660b0a95428d13

Requested commit: ef5618fcd5c0bf3389861c2071660b0a95428d13

Commit: ef5618fcd5c0bf3389861c2071660b0a95428d13

Tree: a641808b265b4c6cfe5dc8b4491402acfe53578a

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
std.hash.crc: simplify api

This removes the two original implementations in favour of the single
generic one based on the Algorithm type. Previously we had three, very
similar implementations which was somewhat confusing when knowing what
one should actually be used.

The previous polynomials all have equivalent variants available when
using the Algorithm type.

```

## Parents

- [c231d94960ec2cecbea0de877f645ba5d439fd13](https://git.cafe/gitcafe/zig/commit/c231d94960ec2cecbea0de877f645ba5d439fd13?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ef5618fcd5c0bf3389861c2071660b0a95428d13?format=markdown)
