From ae593d8439787406999c904c1ff2b75ad782dcd2 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Tue, 27 Jun 2017 23:28:23 +0200
Subject: [PATCH] gluon-core: convert site seed to lowercase

While we use the hexadecimal representation as a hash input for simplicity,
it should not be interpreted as case-sensitive.
---
 package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
index 3829841fd..42524445b 100644
--- a/package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
+++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua
@@ -131,7 +131,7 @@ function site_seed_bytes(key, length)
 	-- cryptographic strength
 	while ret:len() < 2*length do
 		i = i + 1
-		v = hash.md5(v .. key .. site.site_seed .. i)
+		v = hash.md5(v .. key .. site.site_seed:lower() .. i)
 		ret = ret .. v
 	end
 
-- 
GitLab