Commit Graph

11 Commits

Author SHA1 Message Date
Chaosoffire 09e94c6213 refactor: replace math/rand with crypto/rand for secure generation
- Updated `common.Random` and added `common.RandomInt` to use `crypto/rand` for cryptographically secure random number generation.
- Added a thread-safe fallback to `math/rand` in case of system entropy failure.
- Optimized `allSeq` initialization by using a rune slice literal instead of a loop in `init()`.
- Refactored `util/outJson.go` to use the new `common.RandomInt`, removing the direct dependency on `math/rand`.
2025-12-15 21:43:33 +08:00
Alireza Ahmadi 7751c8fce0 go package 2025-09-18 23:19:56 +02:00
Alireza Ahmadi b2a0ccfe02 fix ss in json sub 2025-08-07 00:35:12 +02:00
Alireza Ahmadi 58fd5f17cf fix tls certificate in out_json #681 2025-07-29 22:33:32 +02:00
Alireza Ahmadi d186875ab7 clash - stash subscription #373 2025-06-01 23:50:45 +02:00
Alireza Ahmadi 73cf4d5b7e new protocol anytls 2025-05-29 21:51:20 +02:00
Alireza Ahmadi 045f368c27 fix host in v2ray links #474 2025-02-15 21:30:12 +01:00
Alireza Ahmadi e197a7081b fix exceptions for outjson #459 2025-02-09 14:27:27 +01:00
Alireza Ahmadi 1c4a927e0d small fixes and typos 2025-02-09 00:56:13 +01:00
Alireza Ahmadi f0a7481d72 fix empty outJson error 2025-02-06 11:48:41 +01:00
Alireza Ahmadi 7faa28a89d separate frontend repository 2025-01-29 00:08:36 +01:00