Skip to content

Commit 22f0ff5

Browse files
committed
Upgrade CodeIgniter Framework next-gen version v3.1-stable at 2024-03-15 00:11:14 on Mac-mini-M1--Home
1 parent 5c1ac51 commit 22f0ff5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/helpers/string_helper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ function random_string($type = 'alnum', $length = 16)
257257
case 'unique':
258258
return md5(uniqid(mt_rand(), true));
259259
break;
260+
case 'base64':
261+
return base64_encode(md5(uniqid(mt_rand(), true)));
262+
break;
260263
case 'sha1' :
261264
return sha1(uniqid(mt_rand(), true));
262265
break;

0 commit comments

Comments
 (0)