Crate compile_rand

Crate compile_rand 

Source
Expand description

§compile-rand

This crate provides the compile_rand! macro, which will generate a random number of the given integer type at compile time.

In other words, if – for whatever reason – you actually need this XKCD comic:

https://xkcd.com/221/

…then this crate will give it to you!

§Usage

use compile_rand::compile_rand;

let r = compile_rand!(i64);
println!("{}", r); // A new number each time the program is compiled.

Macros§

compile_rand