Message303231
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));
+} |
|
Date |
User |
Action |
Args |
2017-09-28 13:27:49 | vstinner | set | recipients:
+ vstinner, orsenthil, kdart, pitrou, christian.heimes, eric.araujo, Arfrever, r.david.murray, methane, nvetoshkin, knny-myer, nailor, Keith.Dart, hynek, martin.panter, serhiy.storchaka, Michael.Felt, aixtools@gmail.com |
2017-09-28 13:27:49 | vstinner | set | messageid: <1506605269.91.0.466225441844.issue11063@psf.upfronthosting.co.za> |
2017-09-28 13:27:49 | vstinner | link | issue11063 messages |
2017-09-28 13:27:49 | vstinner | create | |
|