chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rand.c: Fix `TrueRand' constructor so it can possibly work.
[catacomb-python]
/
rand.c
diff --git
a/rand.c
b/rand.c
index 5a323b0dbc31e20fd560bd6e60bc4da64550eddc..1203f76c56d40a674f6ab84ffaba0f355d375053 100644
(file)
--- a/
rand.c
+++ b/
rand.c
@@
-506,7
+506,7
@@
static PyObject *truerand_pynew(PyTypeObject *ty,
char *kwlist[] = { 0 };
grand *r;
PyObject *rc = 0;
char *kwlist[] = { 0 };
grand *r;
PyObject *rc = 0;
- if (PyArg_ParseTupleAndKeywords(arg, kw, ":new", kwlist)) goto end;
+ if (
!
PyArg_ParseTupleAndKeywords(arg, kw, ":new", kwlist)) goto end;
r = rand_create();
r->ops->misc(r, RAND_NOISESRC, &noise_source);
r->ops->misc(r, RAND_SEED, 160);
r = rand_create();
r->ops->misc(r, RAND_NOISESRC, &noise_source);
r->ops->misc(r, RAND_SEED, 160);