migrated cssh to python3

fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4366]
This commit is contained in:
Guillaume Raffy 2026-04-20 14:58:38 +02:00
parent f112cc3a2e
commit 7f050ffba4
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ if __name__ == '__main__':
color_saturation = float(sys.argv[3])
string_format = sys.argv[4] # eg 'osx' 'linux'
# color_hue = int(md5(seed_string).hexdigest()[:8], 16) # taken from http://www.guguncube.com/3237/python-string-to-number-hash
color_hue = float(int(md5(seed_string).hexdigest(), 16) % 100000) / 100000.0
color_hue = float(int(md5(seed_string.encode('utf-8')).hexdigest(), 16) % 100000) / 100000.0
# print(color_hue)
if string_format == 'osx':