This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Felt
Recipients David Carlier, Michael.Felt, devnexen, koobs, pitrou, vstinner
Date 2018-01-17.15:32:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516203144.39.0.467229070634.issue32493@psf.upfronthosting.co.za>
In-reply-to
Content
typo here:

So, I think the AMD64 FreeBSD 10.x Shared 3.x uuid_create() function is wrong (if that is what it is using - was it/can it also use the uuid_generate* routines?

i.e., does AMD FreeBSD use uuid_create() or uuid_generate() - or can it use both?

Could someone with AMD try:
Modules/_uuidmodule.c

 +12  static PyObject *
   +13  py_uuid_generate_time_safe(void)
   +14  {
   +15      uuid_t uuid;
   +16  #ifdef HAVE_UUID_GENERATE_TIME_SAFE
   +17      int res;
   +18
   +19      res = uuid_generate_time_safe(uuid);
   +20      return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res);
   +21  #elif HAVE_UUID_GENERATE_TIME
   +22      uuid_generate_time(uuid);
   +23      return Py_BuildValue("y#O", (const char *) uuid, sizeof(uuid), Py_None);
   +24  #elif HAVE_UUID_CREATE
   +25      uint32_t status;
   +26      uuid_create(&uuid, &status);
   +27      return Py_BuildValue("y#i", (const char *) &uuid, sizeof(uuid), (int) status);
   +28  #else
   +29  #error "no uuid library function available"
   +30  #endif
   +31  }
History
Date User Action Args
2018-01-17 15:32:24Michael.Feltsetrecipients: + Michael.Felt, pitrou, vstinner, koobs, David Carlier, devnexen
2018-01-17 15:32:24Michael.Feltsetmessageid: <1516203144.39.0.467229070634.issue32493@psf.upfronthosting.co.za>
2018-01-17 15:32:24Michael.Feltlinkissue32493 messages
2018-01-17 15:32:24Michael.Feltcreate