mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
16 lines
312 B
C#
16 lines
312 B
C#
using System;
|
|
using System.Security.Cryptography;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
[TestClass]
|
|
public class InsecureRandomnessTest
|
|
{
|
|
|
|
[TestMethod]
|
|
public void TestUnsafe()
|
|
{
|
|
// ACCEPTABLE: Using insecure random, but this is a test
|
|
Random r = new Random();
|
|
}
|
|
}
|