pub fn split_key(key: [u32; 2]) -> ([u32; 2], [u32; 2])Expand description
jax.random.split(key), unpacked (as random::split2).
ยงExamples
use ruxla_core::{Native, random};
use ruxla_env::compiled::{key, split_key};
let (a, b) = random::split2(&random::key::<Native>(3));
let words = |k: &ruxla_core::Key<Native>| k.data().to_vec();
let (c, d) = split_key(key(3));
assert_eq!((words(&a), words(&b)), (c.to_vec(), d.to_vec()));