import Prando from "prando";
import { Address } from "@ton/core";

export function randomAddress(workchain: number, seed: string): Address {
    const random = new Prando(seed);
    const hash = Buffer.alloc(32);
    for (let i = 0; i < hash.length; i++) {
        hash[i] = random.nextInt(0, 255);
    }
    return new Address(workchain, hash);
}
