You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
19 lines
489 B
(*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
open! IStd
|
|
module L = Logging
|
|
|
|
let protect ~f x =
|
|
Epilogues.reset () ;
|
|
L.reset_formatters () ;
|
|
ResultsDatabase.new_database_connection () ;
|
|
(* get different streams of random numbers in each fork, in particular to lessen contention in
|
|
`Filename.mk_temp` *)
|
|
Random.self_init () ;
|
|
f x
|