20 lines
469 B
Rust
20 lines
469 B
Rust
//! 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(())
|
|
}
|