[][src]Trait x86::random::RdSeed

pub trait RdSeed {
    unsafe fn fill_random(&mut self) -> bool;
}

RdSeed trait to implement the generic rdseed_slice function.

Required methods

unsafe fn fill_random(&mut self) -> bool

Fills self with random bits. Returns true on success or false otherwise

Unsafe

RDSEED is not supported on all architctures, so using this may crash you.

Loading content...

Implementors

impl RdSeed for u16[src]

unsafe fn fill_random(&mut self) -> bool[src]

Fills the 16-bit value with a random bit string

Unsafe

Will crash if RDSEED instructions are not supported.

impl RdSeed for u32[src]

unsafe fn fill_random(&mut self) -> bool[src]

Fills the 32-bit value with a random bit string

Unsafe

Will crash if RDSEED instructions are not supported.

impl RdSeed for u64[src]

unsafe fn fill_random(&mut self) -> bool[src]

Fills the 64-bit value with a random bit string

Unsafe

Will crash if RDSEED instructions are not supported.

Loading content...