Package: unsort
Version: 1.0.2-1
Severity: normal

Hi,

I took a look at the program and figured out that the "randomization
based on a good PRNG" mode is not very random. As a symptom of the
problem, it always orders a 2-line file in the same way:

------------------------------------------------------------
$ (for ((i=0; i<1000; i++)); do echo -e 'foo\nbar' |unsort -r |md5sum; done) 
|sort |uniq
ec3df4034567e59e119fcf87f2d9bad4  -
------------------------------------------------------------

        Sami


-- System Information: Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.8-sli (PREEMPT)
Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages unsort depends on:
ii  libc6                         2.7-5      GNU C Library: Shared libraries

unsort recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to