Skip to content

Commit 6f64ed1

Browse files
committed
change 9 digit to 16 digit uid
1 parent adbf3d8 commit 6f64ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/GenUid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getKeyType()
4343
* @param int $limit
4444
* @return false|string
4545
*/
46-
public function uid($limit = 9)
46+
public function uid($limit = 16)
4747
{
4848
return substr(base_convert(sha1(uniqid(mt_rand())), 16, 36), 0, $limit);
4949
}

0 commit comments

Comments
 (0)