Skip to content

Commit

Permalink
Merge pull request #45 from nguyenanhung/v3.2.0-develop
Browse files Browse the repository at this point in the history
Upgrade CodeIgniter Framework next-gen version v3.2.0-develop
  • Loading branch information
nguyenanhung authored Mar 14, 2024
2 parents 7e6ad3e + 110cfd5 commit 4698751
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/helpers/string_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ function random_string($type = 'alnum', $length = 16)
case 'unique':
return md5(uniqid(mt_rand(), true));
break;
case 'base64':
return base64_encode(md5(uniqid(mt_rand(), true)));
break;
case 'sha1' :
return sha1(uniqid(mt_rand(), true));
break;
Expand Down

0 comments on commit 4698751

Please sign in to comment.