summaryrefslogtreecommitdiffstats
path: root/Lib/antigravity.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/antigravity.py')
-rw-r--r--Lib/antigravity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/antigravity.py b/Lib/antigravity.py
index c6f174c..6dc5207 100644
--- a/Lib/antigravity.py
+++ b/Lib/antigravity.py
@@ -12,6 +12,6 @@ def geohash(latitude, longitude, datedow):
'''
# https://xkcd.com/426/
- h = hashlib.md5(datedow).hexdigest()
+ h = hashlib.md5(datedow, usedforsecurity=False).hexdigest()
p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], h[16:32])]
print('%d%s %d%s' % (latitude, p[1:], longitude, q[1:]))