From: Nobuyoshi Nakada Date: 2007-12-01T11:39:37+09:00 Subject: Re: Running GzipWriter on same input produces different output Hi, At Sat, 1 Dec 2007 08:46:09 +0900, Raymond O'Connor wrote in [ruby-talk:281540]: > Is it normal that everytime I gzip the same contents, the output is > different? Yes. $ ruby /usr/bin/irb -rstringio -rzlib --prompt xmp strio = StringIO.new("") ==># gz = Zlib::GzipWriter.new(strio) ==># t = Time.now; gz.write("foobar") ==>6 gz.close ==># [t.to_i, strio.string.unpack("x4V")[0]] ==>[1196476556, 1196476556] _[0] == _[1] ==>true -- Nobu Nakada