Skip to content
Snippets Groups Projects
Unverified Commit ee5491e0 authored by Nathaniel Hoag's avatar Nathaniel Hoag Committed by GitHub
Browse files

Replace LC_CTYPE with LC_ALL (#1474)

Additionally allows generating a password on current gen Macbook.

Before:
LC_CTYPE=C tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
tr: Illegal byte sequence

After:
LC_ALL=C tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
nhq2bu42k0iox5svm9rnmmon3oc2i55g
parent cfdbf538
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ $config = [
* 'secretsalt' can be any valid string of any length.
*
* A possible way to generate a random salt is by running the following command from a unix shell:
* LC_CTYPE=C tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
* LC_ALL=C tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
*/
'secretsalt' => 'defaultsecretsalt',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment