Make LibAC be web compatible for UUIDs
This commit is contained in:
parent
960cf0d789
commit
d6f0e05713
7 changed files with 254 additions and 52 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue