to initial conditions and can be used for generating
pseudorandom numbers (T. Stojanovski, 2001). In
(V. Patidar, 2009) the authors propose a pseudo ran-
dom generator based on chaotic Logistic Map. But
since the Logistic Map operates on real numbers from
the interval (0, 1), the computations performed during
the generation of random sequences are computation-
ally too expensive for sensor nodes. Our modification
of the Logistic Map ensures our approach to be suit-
able for WSN, since it is based on integer computa-
tions, and the statistical tests showed that the random-
ness criteria are fulfilled.
The design of a computationally inexpensive ran-
dom number generator that does not require any ad-
ditional hardware is a very important issue in the area
of the wireless sensor networks. In (Y.H. Wang, 2006)
the authors propose a random number generator based
on single-electron phenomena. It is built of a single-
electron transistor and a single-electron trap, thus, ad-
ditional hardware components are needed. A simple
logic operation is used in order to improve the statis-
tical properties of the generated output. The logic is
based on bit skipping and bit counting to reduce the
information redundancy. Another approach designed
for WSN is the tinyRNG (A. Francillon, 2007). The
random number generator presented in this paper uses
the transmission bit errors as the source of random-
ness. These bit errors are added to the cryptographic
entropy accumulator, which is built using CBC-MAC
function. The entropy is used to reseed the key of
the Cryptographic Pseudo-Random Number Genera-
tor. It is a block cipher encrypting the counter us-
ing the key provided at the programming time and
updated by reseeding with the value from the en-
tropy accumulator. The output is available to applica-
tions through the TinyOS Random interface (TinyOS,
2011). This approach works properly only in case the
radio transceiver is on. And one of the main trends
in WSN is to keep the sensor nodes in sleep mode
whenever possible, i.e., switching the radio off. An-
other solution is proposed in (G. Lo Re, 2011). This
random number generator uses the sensing properties
of the wireless sensor network. The main assump-
tion here is that every sensor node in the network is
able to perform sensing in order to generate random
numbers and these are generated using the ADC con-
verter, buffering and a CMAC algorithm. To avoid
possible manipulation attacks, the sensing task is per-
formed by randomly chosen node being the neighbour
of the node requesting the random number. Thus,
this approach requires additionally that nodes cooper-
ate and communicate to obtain the random numbers,
what significantly increases the costs.
In the rest of the paper we describe our approach
in detail. We sketch the mathematical backgroundand
the requirements that have to be fulfilled by a random
number generator. Then we prove the suitability of
lmRNG for WSN and the results of the tests evaluat-
ing the randomness, performed using the NIST suite.
Finally, we conclude the paper and draw on future im-
provements.
2 MATHEMATICAL
BACKGROUND
2.1 Dynamical Systems and
Mathematical Chaos
A dynamical system is a set of coupled ordinary dif-
ferential equations which determine how the state of
the system evolves over time (L. Kocarev, 2011). For
some parameters the dynamical system can exhibit
chaotic behaviour. Such a system is sensitive to initial
conditions, i.e., small changes of the input parameter
cause significant differences in the future values.
2.1.1 Logistic Map
Logistic Map is an example of chaotic map represent-
ing a population model and was introduced in (May,
1976). It is a simple recurrence relation of degree two
mathematically written as:
x
n+1
= rx
n
(1− x
n
) (1)
where the real number r is a control parameter and
the initial element x
0
is to be defined at the beginning
of computations. The elements x
0
, x
1
, x
2
, ... are real
numbers lying in the interval (0, 1).
The Logistic Map is very sensitive to the param-
eter r, which has to be chosen carefully. There are
some values of r resulting in non-chaotic behaviour
of the Logistic Map, e.g., according to (L. Kocarev,
2011) for the numbers below 3.57 the chaotic map is
in periodic regime.
2.1.2 The Lyapunov Exponent
The Lyapunov Exponent λ is a quantitative measure
of the dependence on the initial conditions. We can
observe that the system is chaotic, when the value of
the Lyapunov Exponent is greater than 0. The Lya-
punov Exponent can be estimated using the following
expression:
λ = ln(r) +
1
N + 1
N
∑
i=1
ln(1− 2x
i
) (2)
lmRNG:ALightweightPseudorandomNumberGeneratorforWirelessSensorNetworks
359