Skip to content

Commit

Permalink
Fix crash in OsRng when compiling with -O.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Aug 5, 2014
1 parent 9bdaf0b commit 081991e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/rand/os.rs
Expand Up @@ -136,10 +136,11 @@ mod imp {
use rand::Rng;
use result::{Ok, Err};
use rt::stack;
use self::libc::{c_ulong, DWORD, BYTE, LPCSTR, BOOL};
use self::libc::{DWORD, BYTE, LPCSTR, BOOL};
use self::libc::types::os::arch::extra::{LONG_PTR};
use slice::MutableVector;

type HCRYPTPROV = c_ulong;
type HCRYPTPROV = LONG_PTR;

/// A random number generator that retrieves randomness straight from
/// the operating system. Platform sources:
Expand Down

0 comments on commit 081991e

Please sign in to comment.