Skip to content

Commit 8eccc3d

Browse files
Merge pull request chriskacerguis#542 from kenjis/fix_generate_key
Fix _generate_key() method. See chriskacerguis#535
2 parents 23e8142 + a6e46c8 commit 8eccc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/controllers/api/Key.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function _generate_key()
213213
do
214214
{
215215
// Generate a random salt
216-
$salt = $this->security->get_random_bytes(64);
216+
$salt = base_convert(bin2hex($this->security->get_random_bytes(64)), 16, 36);
217217

218218
// If an error occurred, then fall back to the previous method
219219
if ($salt === FALSE)

0 commit comments

Comments
 (0)