Handle creating the default crypto context if it doesn't already exist
authorChristopher Dykes <cdykes@fb.com>
Fri, 5 Aug 2016 16:49:03 +0000 (09:49 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Fri, 5 Aug 2016 16:53:29 +0000 (09:53 -0700)
commitcf7b6169c68bd3a9cf01c2304cfb125abf200616
tree29b0e719320606257d19c9908e30a76831682fae
parent86b83461fc47b591b9e873e36ceabe4efa03e11f
Handle creating the default crypto context if it doesn't already exist

Summary: It's perfectly possible that the default crypto context simply hasn't been created yet, so try to create it if the initial acquisition fails.

Reviewed By: yfeldblum

Differential Revision: D3673138

fbshipit-source-id: 122955df04055ff4f99513b182375d4388dd0305
folly/Random.cpp