by Ricardo “Rudxain” Fernández Serrata
Version 6 (April 27, 2024)
Download (71 downloads)
Returns an array ("buffer") of truly random 32bit integers, from `/dev/urandom` source.
If you use `%` (remainder operator) to downscale the range, the output will be biased: https://stackoverflow.com/a/10984975
"Access to all files" permission is unnecessary, as it uses AM's own private cache. The filename is the flow's local ID, reducing the chance of collisions.
Executing `xxd` command would remove the need for a temporary file, but it's unavailable on Android < 7. `mktemp` requires Android >= 6.
Executing `head` cmd would improve performance because of its adaptive block-size. But `dd` is available on all Android versions, unlike `head` (Android >= 6).
seeded pseudo-RNG: llamalab.com/automate/community/flows/41768
Quantum alternative by @Patrick Corgan: llamalab.com/automate/community/flows/35057
tags: serverless any length size bytes octets entropy random number generator
LICENSE: https://unlicense.org
Rudxain profile: llamalab.com/automate/community/flows/42921
5 stars | 0 | |
4 stars | 0 | |
3 stars | 1 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.