Module:CRTModel: Difference between revisions

No edit summary
No edit summary
Line 199: Line 199:
-- Build the upload link with pseudorandom unique identifier
-- Build the upload link with pseudorandom unique identifier
local timestamp = os.time()
local timestamp = os.time()
math.randomseed(timestamp + pageId)  -- Seed with timestamp + page ID for better randomness
local random = math.random(1000, 9999)
local random = math.random(1000, 9999)
local target = "Document:" .. timestamp .. "-" .. random
local target = "Document:" .. timestamp .. "-" .. random
MediaWiki Appliance - Powered by TurnKey Linux