constrandom icon indicating copy to clipboard operation
constrandom copied to clipboard

Macro to generate random constants in Rust https://xkcd.com/221/

Results 7 constrandom issues
Sort by recently updated
recently updated
newest added

The `const_random` macro will now accept and generate fixed sized `u8` arrays of any size. #22 Implementation detail: This patch replaces the 256 bit fixed sized sha3 hash (SHA3-256) with...

Hi The macro crate fails on nightly because it exposes a function (marked as public) which isn't annotated with any one of the `#[proc_macro*]` annotations. Running 0.1.13 on 1.53.0-nightly (2021-04-18)

The original implementation does not guarantee the generated number to be unique. This may cause problem when using it directly as a compile-time generated identifier. So I added a unique...

Commit [4ef07e25a8b08153d527db84dd7f02d398ea1040](https://github.com/tkaitchuck/constrandom/commit/4ef07e25a8b08153d527db84dd7f02d398ea1040) broke no_std support. This in turn broke my no_std usage of the hashbrown crate because I use ahash with the compile-time-rng feature which brings in const-random. (ahash pins...

It looks like the problems with compiling const-random that I'm seeing in Fedora Linux were fixed by this PR: https://github.com/tkaitchuck/constrandom/pull/33 But this fix was never released / published to crates.io....

this is less of an issue and more of a question out of curiosity, but is there a reason that there aren't any float types supported?