mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Rename rand64() to _rand64()
This commit is contained in:
parent
c424352a0a
commit
7ae556463a
52 changed files with 141 additions and 139 deletions
|
@ -16,9 +16,9 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/hyperion.h"
|
||||
|
@ -75,7 +75,7 @@ TEST(EncodeBase64, testOom_returnsNullAndSetsSizeToZero) {
|
|||
TEST(Base64, RoundTrip) {
|
||||
for (i = 0; i < 1000; ++i) {
|
||||
n = rand() % 32;
|
||||
rngset(b, n, rand64, -1);
|
||||
rngset(b, n, _rand64, -1);
|
||||
p = EncodeBase64(b, n, &m);
|
||||
q = DecodeBase64(p, m, &m);
|
||||
ASSERT_EQ(n, m);
|
||||
|
@ -88,7 +88,7 @@ TEST(Base64, RoundTrip) {
|
|||
TEST(Base64, Fuzz) {
|
||||
for (i = 0; i < 1000; ++i) {
|
||||
n = rand() % 32;
|
||||
rngset(b, n, rand64, -1);
|
||||
rngset(b, n, _rand64, -1);
|
||||
free(DecodeBase64(p, m, 0));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue