You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
346 B
Lua
15 lines
346 B
Lua
--- Module for generating bytes randomly.
|
|
-- A byte is an integer with value between 0 - 255 (inclusive)
|
|
-- @classmod lqc.generators.byte
|
|
-- @alias byte
|
|
local int = require 'lqc.generators.int'
|
|
|
|
-- Creates a new byte generator
|
|
-- @return generator for generating random byte values
|
|
local function byte()
|
|
return int(0, 255)
|
|
end
|
|
|
|
return byte
|
|
|