Changeset 4269


Ignore:
Timestamp:
Jan 14, 2010, 1:26:52 AM (7 years ago)
Author:
sam
Message:

Avoid leading zeroes in the unit tests' initial random seed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/functions.inc

    r4261 r4269  
    4646
    4747if [ -z "$1" ]; then
    48   seed=$(date | $ZZUF -m 2>/dev/null | cut -f2 -d' ' | tr -d abcdef | cut -b1-8)
     48  seed=$(date | $ZZUF -m 2>/dev/null | sed 's/[^ ]* [abcdef0]*//' | tr -d abcdef | cut -b1-8)
    4949else
    5050  seed="$1"
Note: See TracChangeset for help on using the changeset viewer.