Opened 11 years ago
Closed 10 years ago
#6801 closed Bugs (fixed)
mersenne_twister friend function operator==
| Reported by: | Owned by: | No-Maintainer | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | random |
| Version: | Boost 1.49.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
operator== does not return the correct value.
I give an example of 2 equivalent mersenne_twister engines for which operator== returns a value of false.
The problem is that operator== counts the high w-r bits of the first byte of the generator state.
Attachments (1)
Change History (2)
by , 11 years ago
| Attachment: | mersenne_twister_bug.cpp added |
|---|
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

example source code