<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62433>62433</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            std::uniform_real_distribution allows initializing with non-floating-point types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ngzhian
      </td>
    </tr>
</table>

<pre>
    Probably missing a static assert somewhere:
https://github.com/llvm/llvm-project/blob/main/libcxx/include/__random/uniform_real_distribution.h#L28

Like in https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/random.h#L1781
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksGOnDwMx58mXKIZgQMDHDjsasVpD98bjBzIgL-GZBSbnZ19-gpQ1fbQSr04sixZv_z8R2aagnOdql5V9ZbhKnNMXZi-ZsKQ2Tg-u_9StGj9Uy_ETGHSqFlQaNDI7JJojot7zC45ZV5U_qbyl1nkzlsHvYJ-IplXex7ioqD3_uPHc7qn-L8bREFvfbQK-gUpbEOyw-engp7C4NfRKeiv14Rh3DesgW4xLdfk0F9HYklkV6EYzrMC8w7NwXDUd_rmNAX9F6JpGE4LpRTT0fyKw-LSAcQyDgoqeN3L6cP8hmdJWEF_MB4cRd0U2diZsTUtZq4rLg1c2rJp6mzu0OXGtvVQ3QqXjwhVM4xYlYh5a9uivWXUQQ4mL6EpqqIs63OT1zVeDN5qyItqNKrM3YLkz5vJc0xTRsyr6y5QGpN5tM7zflWA4B56HyqA7cip2-3bdWJV5p5Y-OcWIfGuYxk3Weblj7I1eh8frCmQEHr62pLxIJl1iOF08xGFwnS6Rwqi5Xl3nK3Jd_-cjB18c7t_7HsAAAD__38R4is">