File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
numpy/_core/code_generators Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def __str__(self):
160
160
return '%s%s %s(%s)' % (doccomment , self .return_type , self .name , argstr )
161
161
162
162
def api_hash (self ):
163
- m = hashlib .md5 ()
163
+ m = hashlib .md5 (usedforsecurity = False )
164
164
m .update (remove_whitespace (self .return_type ))
165
165
m .update ('\000 ' )
166
166
m .update (self .name )
@@ -533,7 +533,9 @@ def fullapi_hash(api_dicts):
533
533
a .extend (name )
534
534
a .extend (',' .join (map (str , data )))
535
535
536
- return hashlib .md5 ('' .join (a ).encode ('ascii' )).hexdigest ()
536
+ return hashlib .md5 (
537
+ '' .join (a ).encode ('ascii' ), usedforsecurity = False
538
+ ).hexdigest ()
537
539
538
540
# To parse strings like 'hex = checksum' where hex is e.g. 0x1234567F and
539
541
# checksum a 128 bits md5 checksum (hex format as well)
@@ -555,7 +557,7 @@ def main():
555
557
tagname = sys .argv [1 ]
556
558
order_file = sys .argv [2 ]
557
559
functions = get_api_functions (tagname , order_file )
558
- m = hashlib .md5 (tagname )
560
+ m = hashlib .md5 (tagname , usedforsecurity = False )
559
561
for func in functions :
560
562
print (func )
561
563
ah = func .api_hash ()
You can’t perform that action at this time.
0 commit comments