Forum Discussion
Simon_Waters_13
Cirrostratus
Mar 30, 2015Best way to get proper random numbers?
Okay did an initial implementation using "rand()".
Found this article of the hardware random number generator.
https://devcentral.f5.com/articles/why-you-should-tap-the-hardware-random-numb...
bhs_114985
Mar 31, 2015Historic F5 Account
Hi Simon,
Try this...this mines the entropy directly from tmm and works on VM as well.
echo -e "\x00\x00\x00\xFF" | nc 127.1.1.2 3 -u -w 1
Not exactly automated to fallback to different methods but gives you the entropy you are looking for.
Simon_Waters_13
Cirrostratus
Mar 31, 2015That seems to be the same as the Hardware RNG link above, have you checked the numbers on the virtual machine are properly random (spectral analysis) ? But yes this needs to run in an iRule to generate tokens.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects