aboutsummaryrefslogtreecommitdiffstats
path: root/random-passphrase
diff options
context:
space:
mode:
Diffstat (limited to 'random-passphrase')
-rwxr-xr-xrandom-passphrase6
1 files changed, 2 insertions, 4 deletions
diff --git a/random-passphrase b/random-passphrase
index 777f10c..0bb2f02 100755
--- a/random-passphrase
+++ b/random-passphrase
@@ -10,10 +10,8 @@ while ($size) {
my $o;
print STDERR "$size random bytes to read.\n";
read $rf, $o, 1;
- if ($o ne "\n" && $o ne "\r") {
- print unpack("H*", $o);
- $size--;
- }
+ print unpack("H*", $o);
+ $size--;
}
close($rf);