From 8bcd0975afc79234a25898b8d484331ff44da7ff Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 22 Jun 2017 00:26:41 +0200 Subject: [PATCH] gluon-core: add a "site seed" to site.conf to seed site-specific random values --- docs/site-example/site.conf | 5 +++++ docs/user/site.rst | 11 +++++++++++ package/gluon-core/check_site.lua | 1 + .../gluon-core/luasrc/usr/lib/lua/gluon/util.lua | 16 ++++++++++++++++ 4 files changed, 33 insertions(+) diff --git a/docs/site-example/site.conf b/docs/site-example/site.conf index 698ab8de..9ea420ef 100644 --- a/docs/site-example/site.conf +++ b/docs/site-example/site.conf @@ -15,6 +15,11 @@ -- Shorthand of the community. site_code = 'ffxx', + -- 32 bytes of random data, encoded in hexacimal + -- Must be the same of all nodes in one mesh domain + -- Can be generated using: echo $(hexdump -n 32 -e '1/1 "%02x"'