Commit Graph
18 Commits
Author SHA1 Message Date
Shelikhoo 85b04d1af9 Fix coding style lints 2024-03-15 20:19:18 +00:00
Shelikhoo 04275b6991 Fix unsafe math rand usage 2024-03-15 20:19:18 +00:00
秋のかえで a788be738e Lint: add nolint flags to avoid lint 2022-08-19 20:05:50 +08:00
Shelikhoo 3ef7feaeaf update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
LoyalsoldierandGitHub f94dd11a8c Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
RPRXandGitHub 7cc8b75006 Reorder dice_test.go 2020-11-14 05:06:07 +00:00
bdf715afa9 rand.Intn(65536) -> rand.Int63() >> 47 (#417)
* Optimize rand.Intn(65536) to rand.Int31() >> 15, with ~20% performance improvement.

* Optimize rand.Intn(65536) to rand.rand.Int63() >> 47

* Remove rand.Seed call duplicate with original source code

Co-authored-by: Chinsyo <chinsyo@sina.cn>
2020-11-14 05:00:25 +00:00
loyalsoldier 784775f689 Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
Shelikhoo d671780804 Drain Connection Based on Uuid based Behavior seed 2020-06-02 14:47:54 +08:00
Shelikhoo e0aa18b6f3 Drain Connection with invalid checksum before closing. Emergency fix for weakness described in https://github.com/v2ray/v2ray-core/issues/2523 2020-06-01 16:40:54 +08:00
Darien Raymond 27ccc9d726 comments 2018-04-03 22:34:59 +02:00
Darien Raymond 2b4104e491 benchmark for dice 2018-02-24 13:57:25 +01:00
Darien Raymond 2e756cdaa8 refactor 2017-04-27 11:54:15 +02:00
Darien Raymond 48eb40ff39 dice.RandomUint16 2017-02-14 22:29:44 +01:00
v2ray 45db388e3f more docs 2016-02-06 18:01:27 +01:00
v2ray d89be624ce doc for dice 2016-02-03 22:49:38 +01:00
Darien Raymond 1a10f7c4da init rand with time 2016-01-25 10:47:22 +00:00
v2ray 37a9d8ef50 dice.Roll() 2016-01-21 22:45:44 +01:00