Guidance is necessary on how to interact with rand_core::Error::CUSTOM_START
#984
Labels
C-docs
Documentation
rand_core::Error::CUSTOM_START
#984
Currently
CUSTOM_START
sets the two upper-most bits in the u32, however it is not obvious and documented how many codes are available above this point. For instance, doing something along the lines:will fail to compile because of the addition overflow. If the user were to use bitwise or, the error would become silent, but it isn’t clear whether that’s desirable.
The documentation for
CUSTOM_START
should document the range of values users can expect to use within the u32.The text was updated successfully, but these errors were encountered: