From 6fa4bbeed425ae99d15322fbaa05d1abeae6547f Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 2 Mar 2014 11:23:04 +1100 Subject: std: Move rand to librand. This functionality is not super-core and so doesn't need to be included in std. It's possible that std may need rand (it does a little bit now, for io::test) in which case the functionality required could be moved to a secret hidden module and reexposed by librand. Unfortunately, using #[deprecated] here is hard: there's too much to mock to make it feasible, since we have to ensure that programs still typecheck to reach the linting phase. --- src/rt/rust_builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt') diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c index 6ba121c5d2d..8ab8636aa3a 100644 --- a/src/rt/rust_builtin.c +++ b/src/rt/rust_builtin.c @@ -410,7 +410,7 @@ rust_win32_rand_acquire(HCRYPTPROV* phProv) { win32_require (_T("CryptAcquireContext"), // changes to the parameters here should be reflected in the docs of - // std::rand::os::OSRng + // rand::os::OSRng CryptAcquireContext(phProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT|CRYPT_SILENT)); -- cgit 1.4.1-3-g733a5