mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
llGenerateKey() returns key, not string
This commit is contained in:
parent
ba9511e2ff
commit
7ebd68c7b2
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue