projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92fe47b
)
fix edge-case in Dummy-backend random number generator initialization
author
Robin Gareus
<robin@gareus.org>
Thu, 12 Nov 2015 15:49:40 +0000
(09:49 -0600)
committer
Robin Gareus
<robin@gareus.org>
Thu, 12 Nov 2015 15:49:40 +0000
(09:49 -0600)
libs/backends/dummy/dummy_audiobackend.cc
patch
|
blob
|
history
diff --git
a/libs/backends/dummy/dummy_audiobackend.cc
b/libs/backends/dummy/dummy_audiobackend.cc
index a59d7e31788ccf730513558d11b38a2552144217..b3cfd3918629c53f9135d2fbc57a87204982355e 100644
(file)
--- a/
libs/backends/dummy/dummy_audiobackend.cc
+++ b/
libs/backends/dummy/dummy_audiobackend.cc
@@
-1525,6
+1525,7
@@
void DummyPort::setup_random_number_generator ()
_rseed = g_get_monotonic_time() % UINT_MAX;
}
_rseed = (_rseed + (uint64_t)this) % UINT_MAX;
+ if (_rseed == 0) _rseed = 1;
}
inline uint32_t