Generating custom principals/uuids in Rust

Yes. It’s a bit low level currently but it should work as any inter canister calls.

let (bytes,): (Vec<u8>,) = ic_cdk::api::call(Principal.management_canister(), "raw_rand", ()).await?;
3 Likes