diff options
author | Steve Dower <steve.dower@python.org> | 2024-02-12 20:13:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 20:13:13 (GMT) |
commit | 7861dfd26a41e40c2b4361eb0bb1356b9b4a064b (patch) | |
tree | efedf1257dbc2e4b6be5aaab340194d644d57a0b /Modules/_randommodule.c | |
parent | a82fbc13d0e352b9af7d7ffbef4bc04cf635f07f (diff) | |
download | cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.zip cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.gz cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.bz2 |
gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes functions (GH-114886)
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r-- | Modules/_randommodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 5481ed9..4463157 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -342,7 +342,8 @@ random_seed(RandomObject *self, PyObject *arg) res = _PyLong_AsByteArray((PyLongObject *)n, (unsigned char *)key, keyused * 4, PY_LITTLE_ENDIAN, - 0); /* unsigned */ + 0, /* unsigned */ + 1); /* with exceptions */ if (res == -1) { goto Done; } |