From 7ebd68c7b2231f94925f2837dfd3e691f29b397b Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Wed, 21 Dec 2016 01:32:54 +0100 Subject: [PATCH] llGenerateKey() returns key, not string --- lslopt/lslbasefuncs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index c36b8a1..7f05843 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1071,7 +1071,8 @@ if lslcommon.IsCalc: s = md5((u'%.17g %f %f' % (time.time(), random.random(), random.random())).encode('utf8') ).hexdigest() - return s[:8] + '-' + s[8:12] + '-' + s[12:16] + '-' + s[16:20] + '-' + s[20:32] + return Key(s[:8] + '-' + s[8:12] + '-' + s[12:16] + '-' + s[16:20] + + '-' + s[20:32]) # Otherwise they're not implemented, as they don't give the same output for # the same input.