| 1 |
#![no_std] |
| 2 |
/// # Random constants |
| 3 |
/// Allows you to insert random constants into your code that will be auto-generated at compile time. |
| 4 |
/// A new value will be generated every time the relevent file is re-built. |
| 5 |
/// # Example |
| 6 |
/// ``` |
| 7 |
/// use const_random::const_random ; |
| 8 |
/// const MY_RANDOM_NUMBER: u32 = const_random!(u32); |
| 9 |
/// const MY_RANDOM_BYTES: [u8; 32] = const_random!([u8; 32]); |
| 10 |
/// ``` |
| 11 |
/// |
| 12 |
/// The following types are supported u8, i8, u16, i16, u32, i32, u64, i64, u128, i128, usize, isize and [u8; N]. |
| 13 |
pub use const_random_macro::const_random; |