Đối số
number
bắt buộc
So duoc dua qua integer conversion truoc khi allocation. Cac gia tri nho hon hoac bang 0 duoc doi thanh 1.
Giá trị trả về
string
Base64 encoding cua raw bytes da tao. Do dai string duoc tra ve khong phai so byte da yeu cau.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Tao byte ngau nhien bang random byte generator va tra ve chung Base64-encoded duoi dang Lua string.
crypt.generatebytes(size: number): string
local encoded = crypt.generatebytes(16)
local raw = base64_decode(encoded)
print(encoded)
print(#encoded)
print(#raw)