We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85e1732 commit 99db66fCopy full SHA for 99db66f
2 files changed
stdlib/hashtbl.ml
@@ -47,6 +47,7 @@ let randomized_default =
47
let randomized = ref randomized_default
48
49
let randomize () = randomized := true
50
+let is_randomize () = !randomized
51
52
let prng = lazy (Random.State.make_self_init())
53
stdlib/hashtbl.mli
@@ -165,6 +165,11 @@ val randomize : unit -> unit
165
166
@since 4.00.0 *)
167
168
+val is_randomize : unit -> bool
169
+(** return if the tables are currently created in randomized mode by default
170
+
171
+ @since 4.02.0 *)
172
173
type statistics = {
174
num_bindings: int;
175
(** Number of bindings present in the table.
0 commit comments