endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
804 stars 71 forks source link

refactor(daemon): Make all formula numbers unique #2072

Closed rekmarks closed 7 months ago

rekmarks commented 7 months ago

Ensures that all formula numbers unique by either deriving them from a root "seed" value or randomly generating them. The seed value exists until the next purge.

We in some cases rely on formula number derivation paths to reference other values. For example, the pet store number is derived from the inspector number, so that the inspector factory function can easily reference the pet store.