Skip to content

Commit

Permalink
fixup! [Stdlib] Hashtbl: add a getter for randomize
Browse files Browse the repository at this point in the history
  • Loading branch information
bobot committed Mar 26, 2014
1 parent ec11031 commit 46d1105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/hashtbl.ml
Expand Up @@ -47,7 +47,7 @@ let randomized_default =
let randomized = ref randomized_default

let randomize () = randomized := true
let is_randomize () = !randomized
let is_randomized () = !randomized

let prng = lazy (Random.State.make_self_init())

Expand Down
2 changes: 1 addition & 1 deletion stdlib/hashtbl.mli
Expand Up @@ -165,7 +165,7 @@ val randomize : unit -> unit
@since 4.00.0 *)

val is_randomize : unit -> bool
val is_randomized : unit -> bool
(** return if the tables are currently created in randomized mode by default
@since 4.02.0 *)
Expand Down

0 comments on commit 46d1105

Please sign in to comment.