Commit Graph

2 Commits

Author SHA1 Message Date
Chi Zhang d66945c363 Move common helper functions to pkg test (#424)
* move common functions to pkg test

* add unit test cases

* fix CR issues
2019-05-28 11:09:31 -07:00
Victor Agababov 7a5ce38287 Simplify and comment AppenRandomString (#282)
* Simplify and comment AppenRandomString

Port and rewrite the comment from the original.
Remove the sync.Once(). Initializing during package initialization is just as good.
Mutex doesn't have to be a pointer

* remove fancy rnd, remove mutex, add example, which would also check compilation

* actually commit the example

* add licence
2019-02-18 12:26:45 -08:00