luci-base: add client-side prng library
authorJo-Philipp Wich <jo@mein.io>
Tue, 28 May 2019 15:50:37 +0000 (17:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:25 +0000 (15:36 +0200)
commit928adb6484b23f54301368e0398f64e5a7dbbaf5
tree30bc7fe96011fee84f03890cd9582309484d42f8
parent5950b87dacf07eebbc58beb9a21781a8abc958e4
luci-base: add client-side prng library

Introduce a new tools.prng JS library which implements the musl libc
srand() and rand() calls to produce identical pseudo random number
sequences in the browser which is needed for the string to color
conversion later on.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/tools/prng.js [new file with mode: 0644]