Wind River Support Network

HomeDefectsLIN6-10721
Fixed

LIN6-10721 : pseudo random number generator is not working

Created: Jan 13, 2016    Updated: Dec 3, 2018
Resolved Date: Jan 21, 2016
Found In Version: 6.0.0.25
Fix Version: 6.0.0.28
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

The internal kernel software based random number generator is not working as expected.  Several tests cases are possible, including non-random data populated for the AT_RANDOM pool, but the easiest method of demonstrating the problem is repeatedly reading from /dev/urandom

Steps to Reproduce

RCPL25
root@qemu0:/tmp# dd count=1 if=/dev/urandom of=/tmp/random_data1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00308132 s, 166 kB/s

root@qemu0:/tmp# dd count=1 if=/dev/urandom of=/tmp/random_data2
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00326698 s, 157 kB/s

root@qemu0:/tmp# dd count=1 if=/dev/urandom of=/tmp/random_data3
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00297914 s, 172 kB/s

root@qemu0:/tmp# cksum /tmp/random_data*
2976959343 512 /tmp/random_data1
2976959343 512 /tmp/random_data2
2976959343 512 /tmp/random_data3
root@qemu0:/tmp#


but expected behavior from RCPL13 is 
RCPL13
root@localhost:~# dd count=1 if=/dev/urandom of=/tmp/random_data1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00609739 s, 84.0 kB/s

root@localhost:~# dd count=1 if=/dev/urandom of=/tmp/random_data2
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00422097 s, 121 kB/s

root@localhost:~# dd count=1 if=/dev/urandom of=/tmp/random_data3
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0041912 s, 122 kB/s

root@localhost:~# cksum /tmp/random_data*
4110291593 512 /tmp/random_data1
3992988565 512 /tmp/random_data2
1799334344 512 /tmp/random_data3

Other Downloads


Live chat
Online