Skip to content

Generate $cronKey in a cleaner way

Jordan Geoghegan requested to merge (removed):patch-2 into dev

Instead of using "tr" to try and pull valid characters from /dev/urandom stream, use head to grab 1024 bytes of entropy and then hash with sha256sum. For key generation, 256 bits of entropy is all you need, so this is overkill. Awk is used to trim output to 30 characters to remain consistent with previous code.

Merge request reports