Re: uuid encode breakage

2014-08-31 Thread Miod Vallat
> I was looking at the recently imported uuid interface in libc and > noticed the encode functions are broken. In particular, this pattern: > > uint8_t *p = buf; > p[0] = htobe32(uuid->time_low); > p[4] = htobe16(uuid->time_mid); > p[6] = htobe16(uuid->time_hi_and_version);

uuid encode breakage

2014-08-31 Thread Jonas 'Sortie' Termansen
Hi, I was looking at the recently imported uuid interface in libc and noticed the encode functions are broken. In particular, this pattern: uint8_t *p = buf; p[0] = htobe32(uuid->time_low); p[4] = htobe16(uuid->time_mid); p[6] = htobe16(uuid->time_hi_and_version);