We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
加载本地目录文件异常 D:\download\upload System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue. (Parameter 'minValue') at System.Random.ThrowMinMaxValueSwapped() at System.Random.Next(Int32 minValue, Int32 maxValue) at MDriveSync.Core.ShaHashHelper.GetSamplePoints(Int64 fileLength, Int32 sampleSize, Int32 numberOfRandomSamples, Int32 seed) at MDriveSync.Core.ShaHashHelper.ComputeFileSampleHashHex(String filePath, String algorithm, Int32 seed) at MDriveSync.Core.ShaHashHelper.ComputeFileSampleHash(String filePath, String alg, Int32 seed) at MDriveSync.Core.ShaHashHelper.ComputeFileHash(String filePath, Int32 level, String alg, Int64 seed) at MDriveSync.Core.AliyunJob.<>c__DisplayClass65_1.g__LoadFiles|4(String dir)
The text was updated successfully, but these errors were encountered:
mdrive/src/MDriveSync.Core/Services/ShaHashHelper.cs
Lines 54 to 57 in 70b240b
如果不满足fileLength <= sampleSize * (3 + numberOfRandomSamples) 且sampleSize 大于fileLength 时,
fileLength <= sampleSize * (3 + numberOfRandomSamples)
sampleSize
fileLength
Line 99 in 70b240b
random.Next 可能出现minValue大于maxValue的情况, @trueai-org 大佬看看是不是需要修改一下临界条件
random.Next
Sorry, something went wrong.
同样的问题 现在有办法解决吗
No branches or pull requests
加载本地目录文件异常 D:\download\upload
System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue. (Parameter 'minValue')
at System.Random.ThrowMinMaxValueSwapped()
at System.Random.Next(Int32 minValue, Int32 maxValue)
at MDriveSync.Core.ShaHashHelper.GetSamplePoints(Int64 fileLength, Int32 sampleSize, Int32 numberOfRandomSamples, Int32 seed)
at MDriveSync.Core.ShaHashHelper.ComputeFileSampleHashHex(String filePath, String algorithm, Int32 seed)
at MDriveSync.Core.ShaHashHelper.ComputeFileSampleHash(String filePath, String alg, Int32 seed)
at MDriveSync.Core.ShaHashHelper.ComputeFileHash(String filePath, Int32 level, String alg, Int64 seed)
at MDriveSync.Core.AliyunJob.<>c__DisplayClass65_1.g__LoadFiles|4(String dir)
The text was updated successfully, but these errors were encountered: