diff options
Diffstat (limited to 'common.lua')
| -rw-r--r-- | common.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common.lua b/common.lua new file mode 100644 index 0000000..adcc178 --- /dev/null +++ b/common.lua @@ -0,0 +1,15 @@ +local table_unpack = table.unpack or unpack +local function rand_string(n) + local b = {} + for i = 1, n do + table.insert(b, math.random(0, 255)) + end + return string.char(table_unpack(b)) +end + +return { + rand_string = rand_string, + default_match_addr = "ivy.vlhl.dev:18252", + gameid_len = 8, + secret_len = 4, +} |
