mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
Replace use of deprecated sha module
This commit is contained in:
parent
be0317632f
commit
cc6006dcb3
@ -1,6 +1,6 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
import sha as shamodule
|
||||
import hashlib
|
||||
import os, random
|
||||
|
||||
from pkg_resources import require
|
||||
@ -10,7 +10,7 @@ from pyrrd.rrd import DataSource, RRD, RRA
|
||||
|
||||
|
||||
def sha(s):
|
||||
return shamodule.new(s).digest()
|
||||
return hashlib.sha1(s).digest()
|
||||
|
||||
def randomid():
|
||||
return os.urandom(20)
|
||||
|
Loading…
Reference in New Issue
Block a user