Commit Graph

15 Commits

Author SHA1 Message Date
Dmitry Chestnykh
76c2ebb03e Drop MIT license, put code into public domain/CC0. 2014-11-06 23:13:45 +01:00
Dmitry Chestnykh
9eb2cf0919 Simplify. 2014-08-09 17:13:26 +02:00
Dmitry Chestnykh
29a0069dc7 Better var name to avoid confusion with type name. 2014-08-09 17:05:33 +02:00
Dmitry Chestnykh
b09047d1ee Fix for alphabets of 256 characters.
Also, panic if given more.
2014-08-09 17:03:38 +02:00
Oleg Ivanov
1b691aeab2 fixed an endless loop when length of chars is a divisor of 256 2014-08-09 23:08:44 +10:00
Dmitry Chestnykh
6004a1368e Revert "Remove panic not needed since Go 1.1."
This reverts commit 53e2fd7421.
2013-12-12 18:01:04 +01:00
Dmitry Chestnykh
53e2fd7421 Remove panic not needed since Go 1.1. 2013-09-23 18:48:36 +02:00
Dmitry Chestnykh
97550955b0 Style fix. 2012-01-20 15:24:58 +01:00
Dmitry Chestnykh
00f2f1a9e4 Fix for Go weekly.2012-01-15. 2012-01-16 14:29:26 +01:00
Dmitry Chestnykh
958b406e0e Avoid modulo bias. 2011-06-06 14:34:01 +02:00
Dmitry Chestnykh
e810e021c7 Use io.ReadFull to read from random source. 2011-04-05 21:52:50 +02:00
Dmitry Chestnykh
6c4e68eee9 Move 0 to position before 1. 2011-04-05 21:48:27 +02:00
Dmitry Chestnykh
7f58d67fe3 Simplify reading from rand. 2011-04-05 20:37:41 +02:00
Dmitry Chestnykh
5abb82120b Fix docs. 2011-04-05 19:55:23 +02:00
Dmitry Chestnykh
4bfaae0c47 Initial commit. 2011-04-05 17:57:25 +02:00