PebbleTemplates / pebble

Java Template Engine
https://pebbletemplates.io
BSD 3-Clause "New" or "Revised" License
1.09k stars 166 forks source link

"Random" number generation? #681

Open rorourke-iot opened 2 months ago

rorourke-iot commented 2 months ago

Ideally, pebble would support one of the known means of generating a non-cryptographic random number (and maybe it does, but the documentation doesn't suggest so). In lieu of direct support, are there any recommended strategies for faking it? Going old school and hacking it off the time/now() works, but doesn't fill me with any sort of confidence on pseudo-variability.