Files
solana/programs/bpf/rust/rand/src/lib.rs

20 lines
476 B
Rust
Raw Normal View History

//! @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);
2020-12-13 17:26:34 -08:00
#[allow(clippy::unnecessary_wraps)]
fn process_instruction(
_program_id: &Pubkey,
_accounts: &[AccountInfo],
_instruction_data: &[u8],
) -> ProgramResult {
msg!("rand");
Ok(())
}