use crate::command::{Command, CommandCode, MAX_MSG_SIZE};
use crate::response::Response;
pub(crate) const MAX_RAND_BYTES: usize = MAX_MSG_SIZE - 1 - 2;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetPseudoRandomCommand {
pub bytes: u16,
}
impl Command for GetPseudoRandomCommand {
type ResponseType = GetPseudoRandomResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetPseudoRandomResponse {
pub bytes: Vec<u8>,
}
impl Response for GetPseudoRandomResponse {
const COMMAND_CODE: CommandCode = CommandCode::GetPseudoRandom;
}