Question: I installed Icinga 1.6.0beta and tried to install it's new web interface using this [manual](http://docs.icinga.org/latest/en/icinga-web-scratch.html). But it was written for Apache. So I used the following configuration file for nginx to run the interface, but no success. I get directory listing denied in error logs. Any help?

Note: /data/developers/icinga-web symlinked to /usr/local/icinga-web

```
server {
server_name developers.example.com;
access_log /var/log/nginx/dev.access.log;
error_log /var/log/nginx/dev.error.log;
root /data/developers;

location / {
    index index.html index.htm index.php;
}

location /icinga-web/js/ext3/ {
    alias /usr/local/icinga-web/lib/ext3/;
}

location /icinga-web/ {
    if (!-e $request_filename) {
            rewrite ^(/icinga-web)(/.*)$ /icinga-web/index.php?$2 last;
    }
}

try_files $uri $uri/ /icinga-web/index.php?$args;
location ~ \.php$ {
    include /etc/nginx/fastcgi_params;

    fastcgi_split_path_info ^(/icinga-web)(/.*)$;

    fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
}
}

```

Answer: 
Producing the same sequence over and over is often a feature, not a bug, as long as you control it. Producing a repeatable sequence makes debugging easier. If you are serious about wanting a non-reproducible random sequence, you could look for a secure random number generator with this as a design aim. You've tagged your question C#, but since Java has <http://docs.oracle.com/javase/1.4.2/docs/api/java/security/SecureRandom.html> and the windows API has <http://en.wikipedia.org/wiki/CryptGenRandom> you may able to find an equivalent in C#.
I am not so conversant in C#. 
But I don't think this problem would occur in Java because the default constructor of Random class uses a seed based on current time and a unique count identifier.Below is code from **java.util.Random** class.

```
private static volatile long seedUniquifier = 8682522807148012L;
public Random() { this(++seedUniquifier + System.nanoTime()); }

```

If C# doesent support this out of box, you could use the above code to create a unique seed each time.

P.S: Note that since access to seedUniquifier is not synchronized, even though its volatile, there is a small possibility that same seeds are used for multiple Random objects. From javadoc of Random class:

> 
> "This constructor sets the seed of the random number generator to a
>  **value very likely to be distinct** from any other invocation of this constructor."
> 
> 
>