Skip to main content

secrets_provider_tests/
fixtures.rs

1use rand::RngCore;
2
3pub fn random_bytes(size: usize) -> Vec<u8> {
4    let mut buf = vec![0u8; size];
5    rand::rng().fill_bytes(&mut buf);
6    buf
7}
8
9pub fn small_payload() -> Vec<u8> {
10    random_bytes(16)
11}
12
13pub fn medium_payload() -> Vec<u8> {
14    random_bytes(1024)
15}