I have an init function in my Rust canister, and I am trying to get access to randomness from the random beacon within that init function. I get the following error
"ic0_call_new" cannot be executed in init mode.
I am trying to do this from the init function:
let call_result: Result<(Vec<u8>,), _> = ic_cdk::api::call::call(ic_cdk::export::Principal::management_canister(), "raw_rand", ()).await;