mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +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
|