llGenerateKey() returns key, not string

This commit is contained in:
Sei Lisa 2016-12-21 01:32:54 +01:00
parent ba9511e2ff
commit 7ebd68c7b2

View file

@ -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.