Add rand dependency test (#12566)

* Add rand dependency test

* nudge
This commit is contained in:
Jack May
2020-09-29 17:25:51 -07:00
committed by GitHub
parent d158d45051
commit 777342a1ef
7 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//! @brief Example Rust-based BPF program that tests rand behavior
#![allow(unreachable_code)]
extern crate solana_sdk;
use solana_sdk::{
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(())
}