Check-in Number:
|
4338 | |
Date: |
2004-Jan-15 16:29:36 (local)
2004-Jan-15 15:29:36 (UTC) |
User: | rse |
Branch: | |
Comment: |
fix clock calculation |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/uuid/uuid.c 1.26 -> 1.27
--- uuid.c 2004/01/15 13:45:18 1.26
+++ uuid.c 2004/01/15 15:29:36 1.27
@@ -522,7 +522,7 @@
prng_data(uuid->prng, (void *)&clck, sizeof(clck));
else
clck++;
- clck &= BM_MASK(5,0);
+ clck %= BM_POW2(14);
/* store back new clock sequence */
uuid->obj.clock_seq_hi_and_reserved =
|
|