Files
solana/programs/bpf/rust/rand/src/lib.rs
Michael Vines 7143aaa89b Clippy
2020-12-14 08:03:29 -08:00

20 lines
476 B
Rust

//! @brief Example Rust-based BPF program that tests rand behavior
#![allow(unreachable_code)]
extern crate solana_program;
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,
};
entrypoint!(process_instruction);
#[allow(clippy::unnecessary_wraps)]
fn process_instruction(
_program_id: &Pubkey,
_accounts: &[AccountInfo],
_instruction_data: &[u8],
) -> ProgramResult {
msg!("rand");
Ok(())
}