constrandom
constrandom copied to clipboard
Macro to generate random constants in Rust https://xkcd.com/221/
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?
Hi, Compiling into rust:1-alpine3.22 docker container fail with error: ``` Compiling const-random-macro v0.1.16 error: linking with `cc` failed: exit status: 1 | = note: "cc" "-Wl,--version-script=/tmp/rustcmbXCij/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcmbXCij/symbols.o" ""...
This is a minor PR to update the `getrandom` dependency to 0.3.3. This would be helpful as we are trying to reduce our number of duplicate dependencies and the `ahash`...