]> Cypherpunks repositories - gostls13.git/commit
compress/flate: test if results are deterministic
authorKlaus Post <klauspost@gmail.com>
Fri, 11 Mar 2016 11:23:11 +0000 (12:23 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Mar 2016 17:07:51 +0000 (17:07 +0000)
commitafdb8cff3ef267ecddb5ce807b850b8664ca9387
tree470d0cd8af17519b3b1b6b3b9faf3aa9a3de844f
parentd05773ce73ae5ed784dc47800992f58790023b4a
compress/flate: test if results are deterministic

This will test if deflate output is deterministic between two runs
of the deflater, when write sizes differ.

The deflater makes no official promises that results are
deterministic between runs, but this is a good test to determine
unintentional randomness.

Note that this does not guarantee that results are deterministic
across platforms nor that results will be deterministic between
Go versions. This is also not guarantees we should imply.

Change-Id: Id7dd89fe276060fd83a43d0b34ac35d50fcd32d9
Reviewed-on: https://go-review.googlesource.com/20573
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/compress/flate/writer_test.go