<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN" "JATS-journalpublishing1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
	<front>
		<journal-meta>
			<journal-id journal-id-type="publisher-id">INFORMATICA</journal-id>
			<journal-title-group>
				<journal-title>Informatica</journal-title>
			</journal-title-group>
			<issn pub-type="epub">0868-4952</issn>
			<issn pub-type="ppub">0868-4952</issn>
			<publisher>
				<publisher-name>VU</publisher-name>
			</publisher>
		</journal-meta>
		<article-meta>
			<article-id pub-id-type="publisher-id">inf24301</article-id>
			<article-id pub-id-type="doi">10.15388/Informatica.2013.399</article-id>
			<article-categories>
				<subj-group subj-group-type="heading">
					<subject>Research article</subject>
				</subj-group>
			</article-categories>
			<title-group>
				<article-title>A New Randomness Test for Bit Sequences</article-title>
			</title-group>
			<contrib-group>
				<contrib contrib-type="Author">
					<name>
						<surname>Alcover</surname>
						<given-names>Pedro María</given-names>
					</name>
					<email xlink:href="mailto:pedro.alcover@upct.es">pedro.alcover@upct.es</email>
					<xref ref-type="aff" rid="j_INFORMATICA_aff_000"/>
					<xref ref-type="aff" rid="j_INFORMATICA_aff_001"/>
					<xref ref-type="corresp" rid="fn1">∗</xref>
				</contrib>
				<contrib contrib-type="Author">
					<name>
						<surname>Guillamón</surname>
						<given-names>Antonio</given-names>
					</name>
					<email xlink:href="mailto:antonio.guillamon@upct.es">antonio.guillamon@upct.es</email>
					<xref ref-type="aff" rid="j_INFORMATICA_aff_001"/>
					<xref ref-type="aff" rid="j_INFORMATICA_aff_002"/>
				</contrib>
				<contrib contrib-type="Author">
					<name>
						<surname>Ruiz</surname>
						<given-names>María del Carmen</given-names>
					</name>
					<email xlink:href="mailto:maricarmen.ruiz@upct.es">maricarmen.ruiz@upct.es</email>
					<xref ref-type="aff" rid="j_INFORMATICA_aff_002"/>
				</contrib>
				<aff id="j_INFORMATICA_aff_000">Department of Information Technologies and Comunications, Universidad Politécnica de Cartagena, Spain</aff>
				<aff id="j_INFORMATICA_aff_001">University Centre of Defense at the Spanish Air Force Academy, MDE-UPCT, Spain</aff>
				<aff id="j_INFORMATICA_aff_002">Department of Applied Mathematics and Statistics, Universidad Politécnica de Cartagena, Spain</aff>
			</contrib-group>
			<author-notes>
				<corresp id="fn1">
					<label>∗</label>Corresponding author.</corresp>
			</author-notes>
			<pub-date pub-type="epub">
				<day>01</day>
				<month>01</month>
				<year>2013</year>
			</pub-date>
			<volume>24</volume>
			<issue>3</issue>
			<fpage>339</fpage>
			<lpage>356</lpage>
			<history>
				<date date-type="received">
					<day>01</day>
					<month>07</month>
					<year>2011</year>
				</date>
				<date date-type="accepted">
					<day>01</day>
					<month>10</month>
					<year>2012</year>
				</date>
			</history>
			<abstract>
				<p>Generating sequences of random numbers or bits is a necessity in many situations (cryptography, modeling, simulations, etc…). Those sequences must be random in the sense that their behavior should be unpredictable. For example, the security of many cryptographic systems depends on the generation of unpredictable values to be used as keys. Since randomness is related to the unpredictable property, it can be described in probabilistic terms, studying the randomness of a sequence by means of a hypothesis test. A new statistical test for randomness of bit sequences is proposed in the paper. The created test is focused on determining the number of different fixed length patterns that appear along the binary sequence. When ‘few’ distinct patterns appear in the sequence, the hypothesis of randomness is rejected. On the contrary, when ‘many’ different patterns appear in the sequence, the hypothesis of randomness is accepted.</p><p>The proposed can be used as a complement of other statistical tests included in suites to study randomness. The exact distribution of the test statistic is derived and, therefore, it can be applied to short and long sequences of bits. Simulation results showed the efficiency of the test to detect deviation from randomness that other statistical tests are not able to detect. The test was also applied to binary sequences obtained from some pseudorandom number generators providing results in keeping with randomness. The proposed test distinguishes by fast computation when the critical values are previously calculated.</p>
			</abstract>
			<kwd-group>
				<label>Keywords</label>
				<kwd>randomness tests</kwd>
				<kwd>cryptography</kwd>
				<kwd>entropy</kwd>
				<kwd>random bit generators</kwd>
			</kwd-group>
		</article-meta>
	</front>
</article>