File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ private static function generateSid(int $agent): string {
3535 $ tmp_string = base_convert ($ agent + 10 , 10 , 36 );
3636 $ tmp_string .= substr (base_convert ($ time , 10 , 36 ), 1 );
3737 $ tmp_string .= substr (base_convert (crc32 (SysContext::get ('request_id ' )), 10 , 36 ), 1 );
38- $ sid = strtolower ($ tmp_string . XString \GenerateRandomString (32 - 5 - strlen ($ tmp_string )));
38+ $ sid = strtolower ($ tmp_string . XString \GenerateRandomString (32 - 6 - strlen ($ tmp_string )));
3939 $ crc = substr (base_convert (crc32 ($ sid ), 10 , 36 ), 1 );
40- $ crc = str_repeat ('0 ' , 5 - strlen ($ crc )) . $ crc ;
40+ $ crc = str_repeat ('0 ' , 6 - strlen ($ crc )) . $ crc ;
4141 return $ sid . $ crc ;
4242 }
4343 public static function getAgentMap (): Swango \HttpServer \Session \AgentMapInterface {
@@ -472,4 +472,4 @@ public function __call(string $name, $arguments) {
472472 cache::select (1 );
473473 return $ ret ;
474474 }
475- }
475+ }
You can’t perform that action at this time.
0 commit comments