db/mkpass
author Krista Bennett <krista@pep-project.org>
Wed, 14 Jun 2017 18:52:55 +0200
branchENGINE-215
changeset 1856 99348d336639
parent 1513 e7f7e42385b5
permissions -rw-r--r--
ENGINE-215: needs to be tested, test cases impacted by the change need to be adjusted
vb@817
     1
#!/bin/sh
vb@815
     2
vb@1513
     3
# This file is under GNU General Public License 3.0
vb@1513
     4
# see LICENSE.txt
vb@1513
     5
vb@1513
     6
vb@815
     7
if [ $1/ == / ] ; then
vb@815
     8
    lang=en
vb@815
     9
else
vb@818
    10
    if [ $1/ == -h/ -o $2/ != / ] ; then
vb@818
    11
        echo usage: $0 [ISO 639 language code]
vb@818
    12
        exit 0
vb@818
    13
    fi
vb@815
    14
    lang=$1
vb@815
    15
fi
vb@815
    16
vb@815
    17
trustwords.py -l $lang ` hexdump -vxn 10 /dev/random | sed -E 's/^[0-9a-z]+//'`