chiark / gitweb /
catacomb/pwsafe.py: Factor database handling out into a StorageBackend.
[catacomb-python] / rand.c
diff --git a/rand.c b/rand.c
index 9f086e60a6d397c294b47d04d7e15712ae182788..3bcd0a9166840eb7a9d4d6dc51f2d5674e708d49 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -978,7 +978,7 @@ static PyObject *dsarand_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
     goto end;
   rc = grand_dopywrap(ty, dsarand_create(p, sz), f_freeme);
 end:
-  return (0);
+  return (rc);
 }
 
 static PyObject *drget_seed(PyObject *me, void *hunoz)