(original) (raw)
changeset: 77304:29148c027986 parent: 77302:dac347701b4f parent: 77303:e2739145657d user: Sandro Tosi sandro.tosi@gmail.com date: Sat Jun 02 19:40:20 2012 +0200 files: Lib/random.py description: Issue #14926: merge with 3.2 diff -r dac347701b4f -r 29148c027986 Lib/random.py --- a/Lib/random.py Sat Jun 02 18:22:31 2012 +0200 +++ b/Lib/random.py Sat Jun 02 19:40:20 2012 +0200 @@ -96,7 +96,7 @@ None or no argument seeds from current time or from an operating system specific randomness source if available. - For version 2 (the default), all of the bits are used if *a *is a str, + For version 2 (the default), all of the bits are used if *a* is a str, bytes, or bytearray. For version 1, the hash() of *a* is used instead. If *a* is an int, all bits are used. /sandro.tosi@gmail.com