jbsgh
jbsgh
lua_isnumber will not work correctly with 32-bit operations, as I stated in my OP.
At first sight, the values look good. But there's a subtle new issue in your proposed implementation: The values cycle every 256 calls of rand(). Consequentially, myrand( NULL, buf, 128...
But they do! Our C-runtime seems to use a simple LCG as rand() (I don't know how it's implemented on our embedded system in detail). Consider the following demo randtest.c:...
@irwir: The LCG was just intended as a demo. We're all aware that this kind of pseudo-random numbers have limitations. Obviously, implementations like this one can be found in real...
BTW: An improved test would be `#if (RAND_MAX >= 0x00FFFFFF)`. This condition ensures that the value of rand() shifted right by 16 bits covers the full range of an unsigned...
https://github.com/Mbed-TLS/mbedtls/pull/10492
I've branched tag v3.6.4 for preparing the PR
Done. @mpg: Reminder!
What do you want me to do in detail? Please specify the requested git commands to fix your CI issues on the PR.