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;
|
2022-02-22 11:59:06 +08:00
|
|
|
use solana_program::{account_info::AccountInfo, entrypoint::ProgramResult, msg, pubkey::Pubkey};
|
2020-09-29 17:25:51 -07:00
|
|
|
|
2022-02-22 11:59:06 +08:00
|
|
|
solana_program::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(())
|
|
|
|
}
|