2021-10-19 16:48:15 -05:00
|
|
|
//! Example Rust-based BPF program that tests rand behavior
|
2020-09-29 17:25:51 -07:00
|
|
|
|
|
|
|
#![allow(unreachable_code)]
|
|
|
|
|
2020-10-23 17:22:10 -07:00
|
|
|
extern crate solana_program;
|
|
|
|
use solana_program::{
|
2020-11-30 13:28:58 -08:00
|
|
|
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, msg, pubkey::Pubkey,
|
2020-09-29 17:25:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
entrypoint!(process_instruction);
|
2020-12-13 17:26:34 -08:00
|
|
|
#[allow(clippy::unnecessary_wraps)]
|
2020-09-29 17:25:51 -07:00
|
|
|
fn process_instruction(
|
|
|
|
_program_id: &Pubkey,
|
|
|
|
_accounts: &[AccountInfo],
|
|
|
|
_instruction_data: &[u8],
|
|
|
|
) -> ProgramResult {
|
2020-11-30 13:28:58 -08:00
|
|
|
msg!("rand");
|
2020-09-29 17:25:51 -07:00
|
|
|
Ok(())
|
|
|
|
}
|