Skip to content

Commit

Permalink
Double the RandomHex() parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
makiuchi-d committed Apr 3, 2024
1 parent af3d334 commit dbc54c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func Load(conffile string) (*Config, error) {
ClientConf: ClientConf{
EventBufSize: 128,
WaitAfterClose: Duration(30 * time.Second),
AuthKeyLen: 32,
AuthKeyLen: 64,
},

LogConf: LogConf{
Expand Down Expand Up @@ -217,7 +217,7 @@ func Load(conffile string) (*Config, error) {
ClientConf: ClientConf{
EventBufSize: 128,
WaitAfterClose: Duration(30 * time.Second),
AuthKeyLen: 32,
AuthKeyLen: 64,
},

LogConf: LogConf{
Expand Down
2 changes: 1 addition & 1 deletion server/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestLoad(t *testing.T) {
ClientConf: ClientConf{
EventBufSize: 512,
WaitAfterClose: Duration(time.Second * 60),
AuthKeyLen: 32,
AuthKeyLen: 64,
},

LogConf: LogConf{
Expand Down
2 changes: 1 addition & 1 deletion server/game/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

const (
// RoomID文字列長
lenId = 16
lenId = 32

idPattern = "^[0-9a-f]+$"
)
Expand Down

0 comments on commit dbc54c5

Please sign in to comment.