Remove clang -Wself-assign warning in Bernoulli()