You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was compiling a littele test project. Under Linux it compiled without a problem, but under Windows I always got a error that it could not find 'pico_rand_feed' and 'pico_rand'. After not knowing how I could possibly fix this, i went to Google and Stack Overflow to find nothing. Next I did was to ask a detailed Question on Stack Overflow here. Today I had the idea to inspect the .a archive with objdump, wich got me this:
wich was ok to compile.
I found that, the WEAK define is not configurable, so my suggestion would be to just make a config entry, to toggle this behaviour.
Alternatively I beleve, that by implementing a 'uint32_t pico_rand(void)' and 'void pico_rand_feed(uint32_t feed)' could also have solved the problem, if you didn't want to change the source.
The text was updated successfully, but these errors were encountered:
You should not use the default pico_rand/pico_rand_feed mechanism, because it's just demo code, and it's PRNG, causing security issues in TCP and other protocols.
Please note that this project looks abandoned/dead. In our free branch, we do not provide a pico_rand() function any more, and you are specifically required to write one of your own, which do not pose this kind of security risks (e.g. predictable sequence numbers, side-channel attacks, etc.).
I was compiling a littele test project. Under Linux it compiled without a problem, but under Windows I always got a error that it could not find 'pico_rand_feed' and 'pico_rand'. After not knowing how I could possibly fix this, i went to Google and Stack Overflow to find nothing. Next I did was to ask a detailed Question on Stack Overflow here. Today I had the idea to inspect the .a archive with objdump, wich got me this:
and after I commented out the weak references in pico_config.h, I got this:
wich was ok to compile.
I found that, the WEAK define is not configurable, so my suggestion would be to just make a config entry, to toggle this behaviour.
Alternatively I beleve, that by implementing a 'uint32_t pico_rand(void)' and 'void pico_rand_feed(uint32_t feed)' could also have solved the problem, if you didn't want to change the source.
The text was updated successfully, but these errors were encountered: