diff util/uuid.lua @ 7063:bc1b375f379e

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 08 Jan 2016 16:21:05 +0100
parents eda0feeaf759
children ec17115e3721
line wrap: on
line diff
--- a/util/uuid.lua	Mon Jan 04 09:14:57 2016 +0000
+++ b/util/uuid.lua	Fri Jan 08 16:21:05 2016 +0100
@@ -16,7 +16,7 @@
 end
 
 local function get_twobits()
-	return ("%x"):format(get_nibbles(1):byte() % 4 + 8);
+	return ("%x"):format(random_bytes(1):byte() % 4 + 8);
 end
 
 local function generate()