Package: gnome-sudoku
Version: 1:3.14.1-1
Severity: important
Tags: upstream

Dear Maintainer,

When I start GNOME Sudoku and generate a new puzzle, it's always the same
puzzle.  If I generate *another* puzzle, the second puzzles are always the
same.  I assume this isn't the intention.

The problem goes away if I add `srand(time(NULL));` to
`qqwing_generate_puzzle`.  I'm not sure that's the best place for that call,
but the random number generator needs to be initialized somewhere.  Here's the
call in upstream qqwing:

https://github.com/stephenostermiller/qqwing/blob/73027c058d89b8ea517d656c61b43487d75b6ebe/src/cpp/main.cpp#L204

Note that this srand call is in the `main` function, so it's presumably not
relevant to callers of the qqwing library, which is what gnome-sudoku is using.



-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-sudoku depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.22.0-1
ii  libc6                                        2.19-18+deb8u4
ii  libcairo2                                    1.14.0-2.1+deb8u1
ii  libgcc1                                      1:4.9.2-10
ii  libgee-0.8-2                                 0.16.1-1+deb8u1
ii  libglib2.0-0                                 2.42.1-1+b1
ii  libgtk-3-0                                   3.14.5-1+deb8u1
ii  libjson-glib-1.0-0                           1.0.2-1
ii  libpango-1.0-0                               1.36.8-3
ii  libpangocairo-1.0-0                          1.36.8-3
ii  libqqwing2                                   1.3.2-1
ii  libstdc++6                                   4.9.2-10

Versions of packages gnome-sudoku recommends:
ii  yelp  3.14.1-1

gnome-sudoku suggests no packages.

-- no debconf information

Reply via email to