Skip to content

Commit

Permalink
Upgrade CodeIgniter Framework next-gen version v3.1-stable at 2024-03…
Browse files Browse the repository at this point in the history
…-15 00:11:14 on Mac-mini-M1--Home
  • Loading branch information
hungnguyenhp committed Mar 14, 2024
1 parent 5c1ac51 commit 22f0ff5
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 22f0ff5

Please sign in to comment.