package colibri2
After a call to Hashtbl.randomize()
, hash tables are created in randomized mode by default: Hashtbl.create
returns randomized hash tables, unless the ~random:false
optional parameter is given. The same effect can be achieved by setting the R
parameter in the OCAMLRUNPARAM
environment variable.
It is recommended that applications or Web frameworks that need to prtect themselves against the denial-of-service attack described in Hashtbl.create
call Hashtbl.randomize()
at initialization time.
Note that once Hashtbl.randomize()
was called, there is no way to revert to the non-randomized default behavior of Hashtbl.create
. This is intentional. Non-randomized hash tables can still be created using Hashtbl.create ~random:false
.
module type Hashtbl = sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>