Skip to content

Commit 13407ee

Browse files
committed
Update StringScrambler.php
Minor bug fix for constructing StringScrambler with a salt.
1 parent 4c17a08 commit 13407ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Naneau/Obfuscator/StringScrambler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public function __construct($salt = null)
3939
$this->setSalt(
4040
md5(microtime(true) . rand(0,1))
4141
);
42+
} else {
43+
$this->setSalt($salt);
4244
}
4345
}
4446

0 commit comments

Comments
 (0)