in reply to Re^2: Digest::Sha1 differences
in thread Digest::Sha1 differences

If it reads from the handle as long as it can, it hashes the empty string.

But you'd have to look into the source to find out for sure.