Let's use _random_ data, not FIXED, for the random seed
This commit is contained in:
parent
1bee0c0491
commit
a8d6c1c7b8
1 changed files with 2 additions and 2 deletions
4
aliases
4
aliases
|
|
@ -6,9 +6,9 @@ mktruckdir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
randmac() {
|
randmac() {
|
||||||
echo $FQDN|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
dd status=none if=/dev/urandom bs=1k count=42|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
||||||
}
|
}
|
||||||
|
|
||||||
randmacxen() {
|
randmacxen() {
|
||||||
echo $FQDN|md5sum|sed 's/^\(..\)\(..\)\(..\).*$/00:16:3E:\1:\2:\3'/
|
dd status=none if=/dev/urandom bs=1k count=42|md5sum|sed 's/^\(..\)\(..\)\(..\).*$/00:16:3E:\1:\2:\3'/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue