Getting cuRAND function to work with C++ implementation

I hate to repost a link, but this isn’t getting much traffic on stackoverflow. I figured someone here would know better than them.

[url]http://stackoverflow.com/questions/27916419/getting-curand-to-work-with-c-implementation-cuda?noredirect=1#comment44231581_27916419[/url]