Author vstinner
Recipients Arfrever, Keith.Dart, Michael.Felt, aixtools@gmail.com, christian.heimes, eric.araujo, hynek, inada.naoki, kdart, knny-myer, martin.panter, nailor, nvetoshkin, orsenthil, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2017-09-28.13:27:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506605269.91.0.466225441844.issue11063@psf.upfronthosting.co.za>
In-reply-to
Content
I marked bpo-5885 as a duplicate of this issue, even if it's not exactly the same. The main purpose of this issue was to use uuid_generate_time() using a C extension, as bpo-20519.

+static PyObject *
+uuid_uuid1(PyObject *self, PyObject *args)
+{
+        uuid_t out;
+        uuid_generate_time(out);
+        return PyByteArray_FromStringAndSize((const char *) out,sizeof(out));
+}

+static PyObject *
+uuid_uuid4(PyObject *self, PyObject *args)
+{
+        uuid_t out;
+        uuid_generate_random(out);
+        return PyByteArray_FromStringAndSize(out,sizeof(out));
+}
History
Date User Action Args
2017-09-28 13:27:49vstinnersetrecipients: + vstinner, orsenthil, kdart, pitrou, christian.heimes, eric.araujo, Arfrever, r.david.murray, inada.naoki, nvetoshkin, knny-myer, nailor, Keith.Dart, hynek, martin.panter, serhiy.storchaka, Michael.Felt, aixtools@gmail.com
2017-09-28 13:27:49vstinnersetmessageid: <1506605269.91.0.466225441844.issue11063@psf.upfronthosting.co.za>
2017-09-28 13:27:49vstinnerlinkissue11063 messages
2017-09-28 13:27:49vstinnercreate