update random name

This commit is contained in:
skywind3000
2018-11-21 20:47:15 +08:00
parent 333677877a
commit b478abcf5e
+2 -1
View File
@@ -614,7 +614,8 @@ function data_save(filename, M)
tmpname = tmpname .. '' ..rnd
end
local sub = (os.tmpname()):sub(-6, -1):gsub('[\\/:~]', '')
tmpname = tmpname .. sub
local ppid = os.getenv('PPID')
tmpname = tmpname .. sub .. (ppid and ppid or '')
fp = io.open(tmpname, 'w')
end
if fp == nil then