Make LibAC be web compatible for UUIDs

This commit is contained in:
zontreck 2024-05-19 18:43:26 -07:00
parent 960cf0d789
commit d6f0e05713
7 changed files with 254 additions and 52 deletions

View file

@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'dart:math';
import 'dart:typed_data';
class ByteLayer {
@ -376,6 +377,13 @@ class ByteLayer {
clearBit(position, maskToClear);
setBit(position, maskToSet);
}
void insertRandomBytes(int count) {
Random rng = Random();
for (int a = 0; a < count; a++) {
writeByte(rng.nextInt(255));
}
}
}
class StringBuilder {