summaryrefslogtreecommitdiff
path: root/sys/src/libmp/port/mpinvert.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-08-29 00:45:16 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-08-29 00:45:16 +0200
commit33862ff7936eb8be9380ce1332a3cfd7ed703672 (patch)
tree5fac524faf06b1d4bc3a72a0010aa687417b2d82 /sys/src/libmp/port/mpinvert.c
parentb80684a1d20b8d6c0fa096891524a424dbd05e72 (diff)
libmp: mpnrand(), what was i *THINKING*
the prior implementation was unneccesarily complicated for no good reason due to me misunderstanding how libc's nrand() works. in contrast to libc, we already generate the *closest* power-of-2 random number with mprand() in the sampling loop.
Diffstat (limited to 'sys/src/libmp/port/mpinvert.c')
0 files changed, 0 insertions, 0 deletions