The code for Ruby's Digest module seems to be racy wrt. multi-threading. See e.g. https://github.com/aws/aws-sdk-ruby/issues/525 for details.