Files
wehub-resource-sync bb087aad19
CI / format (push) Failing after 2s
CI / packaging (push) Failing after 0s
CI / test (push) Failing after 3s
chore: import upstream snapshot with attribution
2026-07-13 11:58:56 +08:00

16 lines
415 B
Dart

import 'dart:math';
import 'package:localsend_app/gen/strings.g.dart';
String generateRandomAlias() {
final random = Random();
final adj = t.aliasGenerator.adjectives;
final fruits = t.aliasGenerator.fruits;
// The combination of both is locale dependent too.
return t.aliasGenerator.combination(
adjective: adj[random.nextInt(adj.length)],
fruit: fruits[random.nextInt(fruits.length)],
);
}