I have a small script to generate a (pseudo) random number:
#!/bin/sh
FILE=/tmp/key
if ! [ -f $FILE ] ; then
echo "creating $FILE"
touch $FILE
fi
dd if=/dev/urandom of=$FILE count=1
sha1sum -b $FILE | cut -d " " -f 1
# end
While it does produce different output each time it runs, dd produces a seqfault.
Sample output:
creating /tmp/key
1+0 records in
1+0 records out
/home/alexp/bin/crypt: line 7: 11150 Segmentation fault dd if=/dev/urandom of=$FILE count=1
4841f29d6d90b23202b7f73b142f9e1e5c399720
I suspect that this is a bug, annoying rather than a showstopper.
Alex
#!/bin/sh
FILE=/tmp/key
if ! [ -f $FILE ] ; then
echo "creating $FILE"
touch $FILE
fi
dd if=/dev/urandom of=$FILE count=1
sha1sum -b $FILE | cut -d " " -f 1
# end
While it does produce different output each time it runs, dd produces a seqfault.
Sample output:
creating /tmp/key
1+0 records in
1+0 records out
/home/alexp/bin/crypt: line 7: 11150 Segmentation fault dd if=/dev/urandom of=$FILE count=1
4841f29d6d90b23202b7f73b142f9e1e5c399720
I suspect that this is a bug, annoying rather than a showstopper.
Alex