import { useState } from "react"; interface ResultDisplayProps { results: [string, string, number][]; saltHash: string; } export default function ResultDisplay({ results, saltHash, }: ResultDisplayProps) { const [copied, setCopied] = useState(false); const handleCopy = () => { const resultText = results.map(([name]) => name).join("\n"); navigator.clipboard.writeText(resultText); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (

随机结果

此网页将逐一比较每个参与者的哈希值与种子的哈希值。通过计算它们之间的相似度,可以找出与种子值最接近的参与者,并将他们按照相似度的程度进行排序。这种排序方法可以确保在每次排序过程中都能产生一致而可靠的结果,满足了「事后可复现」。