static int setSeed(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); XRandom obj = (XRandom)ToLua.CheckObject <XRandom>(L, 1); long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.setSeed(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }