Unbiased random sequences from quasigroup string transformations

  • Authors:
  • Smile Markovski;Danilo Gligoroski;Ljupco Kocarev

  • Affiliations:
  • Faculty of Natural Sciences and Mathematics, Institute of Informatics, “Ss Cyril and Methodius” University, Skopje, Republic of Macedonia;Faculty of Natural Sciences and Mathematics, Institute of Informatics, “Ss Cyril and Methodius” University, Skopje, Republic of Macedonia;Institute for Nonlinear Science, University of California San Diego, La Jolla, CA

  • Venue:
  • FSE'05 Proceedings of the 12th international conference on Fast Software Encryption
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

The need of true random number generators for many purposes (ranging from applications in cryptography and stochastic simulation, to search heuristics and game playing) is increasing every day. Many sources of randomness possess the property of stationarity. However, while a biased die may be a good source of entropy, many applications require input in the form of unbiased bits, rather than biased ones. In this paper, we present a new technique for simulating fair coin flips using a biased, stationary source of randomness. Moreover, the same technique can also be used to improve some of the properties of pseudo random number generators. In particular, an improved pseudo random number generator has almost unmeasurable period, uniform distribution of the letters, pairs of letters, triples of letters, and so on, and passes many statistical tests of randomness. Our algorithm for simulating fair coin flips using a biased, stationary source of randomness (or for improving the properties of pseudo random number generators) is designed by using quasigroup string transformations and its properties are mathematically provable. It is very flexible, the input/output strings can be of 2-bits letters, 4-bits letters, bytes, 2-bytes letters, and so on. It is of linear complexity and it needs less than 1Kb memory space in its 2-bits and 4-bits implementations, hence it is suitable for embedded systems as well.