projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe99114
)
generate_uuid() now generates more or less DCE-compliant uuid's
author
Art Cancro
<ajc@uncensored.citadel.org>
Wed, 6 Apr 2011 19:38:27 +0000
(15:38 -0400)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 17:49:27 +0000
(17:49 +0000)
libcitadel/lib/tools.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/tools.c
b/libcitadel/lib/tools.c
index 0c012e7955e184d128b589ad547b1bf645ebb767..d4bb9d0e2e575538c3d02905b52e1c93f2ceda4a 100644
(file)
--- a/
libcitadel/lib/tools.c
+++ b/
libcitadel/lib/tools.c
@@
-860,9
+860,12
@@
char *strcpy(char *dest, const char *src) {
void generate_uuid(char *buf) {
static int seq = (-1);
+<<<<<<< HEAD
if (seq == (-1)) {
seq = (int)rand();
}
+=======
+>>>>>>> d0e228d... generate_uuid() now generates more or less DCE-compliant uuid's
++seq;
seq = (seq % 0x0FFF) ;