Commit Graph

11 Commits

Author SHA1 Message Date
Jeong Yunwon
a7ced8113b random.seed with unwrap_or_default 2022-04-24 12:26:48 +09:00
Jeong Yunwon
e52a5f99f3 remove PyPayload::into_pyresult_with_type 2022-04-23 09:47:53 +09:00
Jeong Yunwon
66b6a06997 PyValue -> PyPayload 2022-04-23 05:20:31 +09:00
snowapril
04306973ed Fix getrandbits to check negative
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
Padraic Fanning
0d979d8b3e Allow random.getrandbits(0) 2022-01-16 20:23:40 -05:00
Padraic Fanning
6b795a7e49 Deduplicate random.randbytes
random.randbytes() is now in random.py
2022-01-16 16:18:06 -05:00
jfh
05c4fcf934 Allow any object as an argument for random.seed 2021-11-04 18:34:20 +02:00
Jeong YunWon
8cdde9150e Rename slot traits to drop Slot prefix 2021-10-14 13:44:22 +09:00
Jeong YunWon
7cae6d24fe Refactor PyType creation 2021-10-14 13:37:45 +09:00
Osman Turan
131c0b195d Add missing randbytes method on random 2021-10-03 05:38:16 +03:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00