local skynet = require "skynet" local c = require "snowflake.core" local prefix = nil local function gen() return prefix .. c.gen() end skynet.init(function() local snowflake = skynet.localname(".snowflake") prefix = skynet.call(snowflake, "lua", "prefix") end) return gen