Make 1 the minimum registration ID
This commit is contained in:
parent
e20ec013f5
commit
5219cdf2c9
4 changed files with 30 additions and 26 deletions
|
@ -35,7 +35,7 @@ import type { UUID, UUIDStringType } from '../types/UUID';
|
|||
import { UUIDKind } from '../types/UUID';
|
||||
import type { DirectoryConfigType } from '../types/RendererConfig';
|
||||
import * as Bytes from '../Bytes';
|
||||
import { getRandomValue } from '../Crypto';
|
||||
import { randomInt } from '../Crypto';
|
||||
import * as linkPreviewFetch from '../linkPreviews/linkPreviewFetch';
|
||||
import { isBadgeImageFileUrlValid } from '../badges/isBadgeImageFileUrlValid';
|
||||
|
||||
|
@ -2431,11 +2431,11 @@ export function initialize({
|
|||
}
|
||||
|
||||
function getHeaderPadding() {
|
||||
const max = getRandomValue(1, 64);
|
||||
const max = randomInt(1, 64);
|
||||
let characters = '';
|
||||
|
||||
for (let i = 0; i < max; i += 1) {
|
||||
characters += String.fromCharCode(getRandomValue(65, 122));
|
||||
characters += String.fromCharCode(randomInt(65, 122));
|
||||
}
|
||||
|
||||
return characters;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue