2020-09-29 17:25:51 -07:00
|
|
|
//! @brief Example Rust-based BPF program that tests rand behavior
|
|
|
|
|
|
|
|
#![allow(unreachable_code)]
|
|
|
|
|
2020-10-22 10:23:50 -07:00
|
|
|
extern crate solana_program_sdk;
|
|
|
|
use solana_program_sdk::{
|
2020-09-29 17:25:51 -07:00
|
|
|
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, pubkey::Pubkey,
|
|
|
|
};
|
|
|
|
|
|
|
|
entrypoint!(process_instruction);
|
|
|
|
fn process_instruction(
|
|
|
|
_program_id: &Pubkey,
|
|
|
|
_accounts: &[AccountInfo],
|
|
|
|
_instruction_data: &[u8],
|
|
|
|
) -> ProgramResult {
|
|
|
|
info!("rand");
|
|
|
|
Ok(())
|
|
|
|
}
|