Every environment draws its own random values.
A snapshot copies memory, random-number state included. Out of the box, environments restored from one snapshot returned the same createUUID(). This page asks several environments at once so you can check that they no longer do.
- Certificate serial
- 1E0EBD1E-2CD4-4F39-945A55A0C64F8D0E
Ask eight at once
Eight simultaneous requests force Lambda to restore more environments. Each row is one response from /unique.
| Environment | createUUID() | rand() | Kernel bytes |
|---|---|---|---|
| No values requested yet. | |||
What fixed it
- The Lucee image starts Java with
java.security.egd=file:/dev/./urandom. That makes Java keep its random state in memory, where the snapshot freezes it. The Dockerfile removes the flag, so Java reads the kernel on every call. - Lucee keeps the generators behind
rand()in a static map.snapstart/after.cfmmixes fresh kernel entropy into each one after every restore.