Skip to main navigation Skip to search Skip to main content

Fast algorithm for pseudo random number generation in Linux user space

  • Xiaopeng Gao*
  • , Zhe Zhang
  • , Guoliang Liu
  • , Xiang Long
  • *Corresponding author for this work
  • Beihang University

Research output: Contribution to journalArticlepeer-review

Abstract

RNGs (random number generators) are important building blocks for algorithms in security applications. They are paramount in construction of encryption keys. For security applications with key exchange in high frequency, the two RNGs provided by Linux kernel are not acceptable because of their low efficiency. An algorithms for fast pseudo random number generation as proposed is implemented in Linux user space. The source of random number is a high-frequency 64 bit counter. The lowest 4 bytes of the counter are added in a pool, then the pool is hashed with SHA (security hash algorithm). The first 16 bytes of the hash are output. This process is repeated until the requested number of random number is achieved. Several statistical tests are employed to investigate the random-ness of RNGs. The results show that the quality of random number generated are guaranteed. Due to its running in Linux user space, this algorithm has much higher efficiency than Linux's two RNGs.

Original languageEnglish
Pages (from-to)489-493
Number of pages5
JournalBeijing Hangkong Hangtian Daxue Xuebao/Journal of Beijing University of Aeronautics and Astronautics
Volume32
Issue number4
StatePublished - Apr 2006

Keywords

  • Linux
  • Random number
  • Randomness
  • Statistical independence
  • Uniformity

Fingerprint

Dive into the research topics of 'Fast algorithm for pseudo random number generation in Linux user space'. Together they form a unique fingerprint.

Cite this