knot126

furries, computers, magic

  • they/them (any are fine)

posts from @knot126 tagged #c++

also:

knot126
@knot126

this is a good example of why C++ and its standard library sucks. like how am i supposed to tell what the hell is happening when there's a reference to a secure random number generator and a non-secure one in the same fucking function and they seem to be related ... somehow??? like to fucking get a secure number in C++ you need to construct a not secure RNG class??? and just to nitpick why the fuck is std::random_device the name that was chosen for it and how the fuck can this api make sense to anyone? like std::secure_random isn't a good name or some shit so we have to use the half-truth that it comes from "a" device? also ... just fucking something like void std::random_bytes(size_t count, void *out) would have covered basically every use case of secure random bytes and been 1000 times simpler lol.




this is a good example of why C++ and its standard library sucks. like how am i supposed to tell what the hell is happening when there's a reference to a secure random number generator and a non-secure one in the same fucking function and they seem to be related ... somehow??? like to fucking get a secure number in C++ you need to construct a not secure RNG class??? and just to nitpick why the fuck is std::random_device the name that was chosen for it and how the fuck can this api make sense to anyone? like std::secure_random isn't a good name or some shit so we have to use the half-truth that it comes from "a" device? also ... just fucking something like void std::random_bytes(size_t count, void *out) would have covered basically every use case of secure random bytes and been 1000 times simpler lol.