2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
. global/common.sh
origin=1566169297
now=$(date +%s)
delta=$(expr $now - $origin)
if test "$1" = "private"; then
# for privacy's sake, we're not to show
# the hostname. instead, we calculate a
# hash based on the time delta and the
# output of uname -a for extra entropy
if has "$HASH"; then
hash="$HASH"
elif has sha1; then
|
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
. global/common.sh
origin=1566169297
now=$(date +%s)
delta=$(expr $now - $origin)
if test "$id_mode" = "private"; then
# for privacy's sake, we're not to show
# the hostname. instead, we calculate a
# hash based on the time delta and the
# output of uname -a for extra entropy
if has "$HASH"; then
hash="$HASH"
elif has sha1; then
|