_rdrand_u16(), _rdrand_u32(), _rdrand_u64()

Generate random numbers of 16/32/64 bit wide random integers.

Syntax

extern unsigned short _rdrand_u16();

extern unsigned int _rdrand_u32();

extern unsigned __int64 _rdrand_u64();

Description

These intrinsics generate random numbers of 16/32/64 bit wide random integers. These intrinsics are mapped to the hardware instruction RDRAND.

Return

A hardware-generated 16/32/64 random value.

Constraints

The _rdrand_u64() intrinsic can be used only on systems with the 64-bit registers support.


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.