1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-23 16:05:24 +00:00
v2fly/common/dice
Chinsyo 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
..
dice_test.go rand.Intn(65536) -> rand.Int63() >> 47 (#417) 2020-11-14 05:00:25 +00:00
dice.go rand.Intn(65536) -> rand.Int63() >> 47 (#417) 2020-11-14 05:00:25 +00:00