Skip to content

Commit 4c0a31f

Browse files
authored
bpo-9216: Nobody expects the geohashing FIPS inquisition (GH-19520)
Automerge-Triggered-By: @tiran
1 parent d42e582 commit 4c0a31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/antigravity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ def geohash(latitude, longitude, datedow):
1212
1313
'''
1414
# https://xkcd.com/426/
15-
h = hashlib.md5(datedow).hexdigest()
15+
h = hashlib.md5(datedow, usedforsecurity=False).hexdigest()
1616
p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], h[16:32])]
1717
print('%d%s %d%s' % (latitude, p[1:], longitude, q[1:]))

0 commit comments

Comments
 (0)