mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 20:32:33 +00:00
6 lines
116 B
Ruby
6 lines
116 B
Ruby
$digest_mutex = Mutex.new
|
|
|
|
def sha1_hexdigest data
|
|
$digest_mutex.synchronize { Digest::SHA1.hexdigest(data) }
|
|
end
|