Rrdrand-package: DRNG(Digital Random Numbers Generate) on Intel CPUs with the...

Description Usage Details Author(s) Examples

Description

Make use of the hardware random number accessed by the RdRand instruction in recent Intel CPUs (Ivy Bridge and later).

This library defines the user_unif_rand symbol and gives back a random number of RdRand.

‘hasRDRAND’ returns either RdRand available by executing the CPUID.

if HasRDRAND return false of library load time, it does not change the RNGkind.

if you do changed RNGkind("user") by manual operation and RdRand is not available, you get NaN.

If you want to detach, it will be set to RNGkind of "default".

Usage

1

Details

http://prs.ism.ac.jp/~nakama/Rrdrand

Author(s)

Ei-ji Nakama <nakama@com-one.com> and Junji NAKANO <nakanoj@ism.ac.jp>

Maintainer: Ei-ji Nakama <nakama@com-one.com>

Examples

1
2
3
4
  library(Rrdrand)
  if(hasRDRAND())
    print(RNGkind())
    print(runif(3))

Rrdrand documentation built on May 2, 2019, 2:38 a.m.