找回密码
 骑士注册

QQ登录

微博登录

搜索
❏ 站外平台:

tag 标签:

相关手册

  • random, srandom, initstate, setstate - random number generator

    #include <stdlib.h>
    
           long int random(void);
    
           void srandom(unsigned int seed);
    The random() function uses a nonlinear additive feedback random  number
           generator  employing a default table of size 31 long integers to return
           successive pseudo-random numbers in the range from 0 to RAND_MAX.   The
           period  of  this  random  number generator is very large, approximately
           16 * ((2^31) - 1).
  • random, urandom - kernel random number source devices

    
        
    The character special files /dev/random and /dev/urandom (present since
           Linux 1.3.30) provide  an  interface  to  the  kernel's  random  number
           generator.  File /dev/random has major device number 1 and minor device
           number 8.  File /dev/urandom has major device number 1 and minor device
           number 9.
  • random -- random lines from a file or random numbers

    random [-er] [denominator]
    random reads lines from the standard input and copies them to the
         standard output with a probability of 1/denominator.  The default value
         for denominator is 2.
    
         The options are as follows:

相关文章

  • Linux 随机数生成器可能还是不安全的

    在 Linus 向那些质疑 Linux 随机数生成器安全性的人们发表了自己的观点之后,现在,一篇新的学术论文分析了Linux中的/dev/urandom和/dev/random的健壮性。 论文中写道:从实际的角度来说,我们也对 Linux 的两种伪 ...

    2013-10-21 20:53     willqian

返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。