digest icon indicating copy to clipboard operation
digest copied to clipboard

[DOC] Document thread-safety of Digest algorithms

Open adam12 opened this issue 1 year ago • 1 comments

Using constants under the Digest:: namespace are loaded through const_missing, but this has been observed to not be thread-safe and can cause errors regarding Digest::Base. We should more prominently encourage the use of Digest() when loading dynamically or using an explicit require up front when the algorithm is known.

adam12 avatar Mar 04 '24 21:03 adam12

I was involved in discussion around this on the Ruby discord. This looks like a clear improvement to me.

rickhull avatar Mar 08 '24 20:03 rickhull