different result betweent online and local

1. A concise explanation of the problem you're experiencing.

i found out different result when i test the same demo local and online ,the version

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

online demo entity path look smooth,but local is not

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

i want to draw a entity path in my project that look smooth

4. The Cesium version you're using, your operating system and browser.\

cesium version:1.41;
operating system:win7 Ultimate
browser:the latest chrome



Hi there,

Could you provide a code sample? I don’t have enough context for what may be happening here.

Thanks,

Gabby

thx for your response,here is the url -“https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=c08b0482a3a74973344637f67a0694a1”,when i copy the code and paste to my local server,the pathes are discontinuous

You’re going to get a different result everytime you run this code.

First, the start time is not constant. Th following line will default to the current system time:

var startTime = viewer.clock.startTime;

``

And secondly, the color and the positions of the lines are generated randomly:

var color = Cesium.Color.fromRandom({
alpha : 1.0
});
var stopLon = Cesium.Math.nextRandomNumber() * 358 - 179;
var stopLat = Cesium.Math.nextRandomNumber() * 178 - 89;

``

If you want it to be consistent, set the clock start time to a specific datetime, and make sure you set the seed of the random generator to something consistent using CesiumMath.setRandomNumberSeed.

thank you anyway,maybe sth wrong with my computer,i will find it out