add uuid code from from netbsd
commitdcfdc70d2905c20b6056fd3c150707902832979e
authorpedro martelletto <pedro@ambientworks.net>
Fri, 31 May 2013 11:49:31 +0000 (31 13:49 +0200)
committerpedro martelletto <pedro@ambientworks.net>
Tue, 2 Jul 2013 20:01:25 +0000 (2 22:01 +0200)
tree73ef1d407898f80051b7cbf7c52e0df72aeb2298
parentdc3a6e2991a35e91d4a35427335d3b13d261d6c1
add uuid code from from netbsd

local changes:
remove rcsid and references to inexistent header files

comment out compile-time assertions

replace a kmutex_t with a struct rwlock

adapt uuid_node() to bitrig

one more case of cprng_fast32() -> arc4random()

comment out syscall for now

be16toh -> betoh16

bool->int

Get rid of static in the kernel.

Do what section 4.5 of RFC4122 suggests and hide the IEEE 802 address of
the generating machine, using random bits instead.
include/Makefile
include/uuid.h [new file with mode: 0644]
sys/conf/files
sys/kern/kern_uuid.c [new file with mode: 0644]
sys/sys/uuid.h [new file with mode: 0644]